tests/
- Main functions provided by Holberton School to test the files.
- 0. Squared simple
0-square_matrix_simple.py
- Function that computes the square value of all integers of a matrix.
- 1. Search and replace
1-search_replace.py
- Function that replaces all occurrences of an element by another in a new list.
- 2. Unique addition
2-uniq_add.py
- Function that adds all unique integers in a list (only once for each integer).
- 3. Present in both
3-common_elements.py
- Function that returns a set of common elements in two sets.
- 4. Only differents
4-only_diff_elements.py
- Function that returns a set of all elements present in only one set.
- 5. Number of keys
5-number_keys.py
- Function that returns the number of keys in a dictionary.
- 6. Print sorted dictionary
6-print_sorted_dictionary.py
- Function that prints a dictionary by ordered keys.
- 7. Update dictionary
7-update_dictionary.py
- Function that replaces or adds key/value in a dictionary.
- 8. Simple delete by key
8-simple_delete.py
- Function that deletes a key in a dictionary.
- 9. Multiply by 2
9-multiply_by_2.py
- Function that returns a new dictionary with all values multiplied by 2.
- 10. Best score
10-best_score.py
- Function that returns a key with the biggest integer value.
- 11. Multiply by using map
11-multiply_list_map.py
- Function that returns a list with all values multiplied by a number without using any loops.
- 12. Roman to integer
12-roman_to_int.py
- Function that converts a Roman numeral to an integer.
- 13. Weighted average!
100-weight_average.py
- Function that returns the weighted average of all integers tuple(<score>, <weight>)
.
- 14. Squared by using map
101-square_matrix_map.py
- Function that computes the square value of all integers of a matrix using map.
- 15. Delete by value
102-complex_delete.py
- Function that deletes keys with a specific value in a dictionary.
- Felipe Villamizar - GitHub