Python code


Terminal output