Question: Question 1.(errors.py) There are three kinds of programming errors encountered in Python programs: syntax, runtime, and semantic/logical.Write a complete Python program which contains one of

Question 1.(errors.py) There are three kinds of programming errors encountered in Python programs: syntax, runtime, and semantic/logical.Write a complete Python program which contains one of each kind of error, and briefly describe in added comments (#...) why it is an error of that particular type.

Question 2.(inverse.py) Write a complete Python program.It should prompt the user to enter an integer, then read and input string withinput(), convert it to an integeriviaint(), then print two different values:1/iand1.0/i.Then add a comment (#...) which describes why the answers are different.

Question 3.(paren.py) Consider the following arithmetic expression in Python:5 - 4 * 3 / 2 ** 1

Write a program which prints out this unparenthesized expression, then prints out as many differently parenthesized versions of it as you can, such that each output value isdifferentthan the others.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!