Skip to content

Latest commit

 

History

History

python-more_data_structures

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Python - More Data Structures: Set, Dictionary

Description

  • tests/ - Main functions provided by Holberton School to test the files.

Tasks

  • 0. Squared simple
  • 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
  • 4. Only differents
  • 5. Number of keys
  • 6. Print sorted dictionary
  • 7. Update dictionary
  • 8. Simple delete by key
  • 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
  • 13. Weighted average!
    • 100-weight_average.py - Function that returns the weighted average of all integers tuple (<score>, <weight>).
  • 14. Squared by using map
  • 15. Delete by value

Author