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 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
Get step-by-step solutions from verified subject matter experts
