
上QQ阅读APP看书,第一时间看更新
Running your program
To run your program, enter your command line or terminal window and type the following command:
python first_calc.py
Your program should run through addition, subtraction, multiplication, pision, and modulo, and print answers to the user for each set of numbers that they enter. If there are errors when the program runs, the error messages from your computer will usually tell you that something is wrong. The error message will even tell you what line of code in your file has the problem so that it is easier to debug (find and fix errors in) your code.