Lab Description:

This lab is about the difference between the interpreter and the interactive shell of Python. It also shows how different an output can be depending on the syntax used in the code.

Code:

Code for Exercise 2:

print (“5”)
print (“x = 5”)
print (“x + 1”)

Output:

Output for exercise 2 with print commands

Output for exercise 2 with print commands

Code for exercise 3:

exercise 3

Screenshots: