Checkpoint 2.8.1.
- <class ’str’>
- All input from users is read in as a string.
- <class ’int’>
- Even though the user typed in an integer, it does not come into the program as an integer.
- <class 18>
- 18 is the value of what the user typed, not the type of the data.
- 18
- 18 is the value of what the user typed, not the type of the data.
What is printed when the following statements execute?
n = input("Please enter your age: ")
# user types in 18
print ( type(n) )