Skip to content

Files

Latest commit

Mar 28, 2023
2933f30 · Mar 28, 2023

History

History

0x05-python-exceptions

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Mar 27, 2023
Mar 27, 2023
Mar 27, 2023
Mar 27, 2023
Mar 27, 2023
Mar 27, 2023
Mar 27, 2023
Mar 27, 2023
Mar 27, 2023
Mar 27, 2023
Mar 27, 2023
Mar 27, 2023
Mar 27, 2023
Mar 27, 2023
Mar 27, 2023
Mar 27, 2023
Mar 28, 2023

0x05. Python - Exception

  1. Write a function that prints x elements of a list.
  2. Write a function that prints an integer with "{:d}".format().
  3. Write a function that prints the first x elements of a list and only integers.
  4. Write a function that divides 2 integers and prints the result.
  5. Write a function that divides element by element 2 lists.
  6. Write a function that raises a type exception.
  7. Write a function that raises a name exception with a message.
  8. Write a function that prints an integer.
  9. Write a function that executes a function safely.
  10. Write the Python function def magic_calculation(a, b): that does exactly the same as the following Python bytecode: