- 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\ - My first toolbox!
Write a program that imports functions from the file calculator_1.py, does some Maths, and prints the result.\ - How to make a script dynamic!
Write a program that prints the number of and the list of its arguments.\ - Infinite addition
Write a program that prints the result of the addition of all arguments\ - Who are you?
Write a program that prints all the names defined by the compiled module hidden_4.pyc (please download it locally).\ - Everything can be imported
Write a program that imports the variable a from the file variable_load_5.py and prints its value.\ - Build my own calculator!
Write a program that imports all functions from the file calculator_1.py and handles basic operations.\ - Easy print
Write a program that prints #pythoniscool, followed by a new line, in the standard output.\ - ByteCode -> Python #3
Write the Python function def magic_calculation(a, b): that does exactly the same as the following Python bytecode:\ - Fast alphabet
Write a program that prints the alphabet in uppercase, followed by a new line.
0x02-python-import_modules
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||