Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

README.md

Lesson 6 - Dictionaries, tuples and sets + *args and **kwargs

introduction

*args and **kwargs

practice projects

  1. Automate the Boring Stuff with Python / Chapter 5 / Fantasy Game Inventory
  2. Automate the Boring Stuff with Python / Chapter 5 / List to Dictionary Function for Fantasy Game Inventory
  3. Snakify / Lesson 8 / Problems ("Uppercase" and "Reverse the sequence" only)
  4. Snakify / Lesson 10 / Problems ("Cubes", "The number of distinct words in some text" and "Guess the number" only)
  5. Snakify / Lesson 11 / Problems ("Access rights", "Countries and cities" and "Frequency analysis" only)
  6. Args sum - write a function called sum_all that takes any number of arguments and returns their sum.
  7. Args inspector - write a function called inspect_args that prints passed args and kwargs in human-readable format.
  8. Logger wrapper - write a function called logger_wrapper that wraps call to any function in order to log passed args. The function must take foo, *args and **kwargs, prints *args and **kwargs in human readable format and finally call foo with args and kwargs