X Tutup
Skip to content

Latest commit

 

History

History

README.md

README FILES for 0x02-python-import_modules


TASKS


  1. Import a simple function from a simple file mandatory
    Write a program that imports the function def add(a, b): from the file add_0.py and prints the result of the addition 1 + 2 = 3\
  2. My first toolbox!
    Write a program that imports functions from the file calculator_1.py, does some Maths, and prints the result.\
  3. How to make a script dynamic!
    Write a program that prints the number of and the list of its arguments.\
  4. Infinite addition
    Write a program that prints the result of the addition of all arguments\
  5. Who are you?
    Write a program that prints all the names defined by the compiled module hidden_4.pyc (please download it locally).\
  6. Everything can be imported
    Write a program that imports the variable a from the file variable_load_5.py and prints its value.\
  7. Build my own calculator!
    Write a program that imports all functions from the file calculator_1.py and handles basic operations.\
  8. Easy print
    Write a program that prints #pythoniscool, followed by a new line, in the standard output.\
  9. ByteCode -> Python #3
    Write the Python function def magic_calculation(a, b): that does exactly the same as the following Python bytecode:\
  10. Fast alphabet
    Write a program that prints the alphabet in uppercase, followed by a new line.
X Tutup