Problem

Python

Download this code. This code is full syntax errors. Fix the errors and submit the corrected code with the name python_script_full_of_syntax_errors_fixed.py. Explain in front of each corrected Python statement, why the error occurred. On the last line of the script,

true = fox is rev in Persian

the statement runs without error. But can you explain what it does? (Hint: For this part, you need to understand operation precedence. You may find the Python tutorials available here useful.

Solution

Python

The corrected file can be downloaded from here.

Comments