Checkpoint 3.13.1.
What is printed when the following statements execute?
n = input("Please enter your age: ")
# user types in 18
print ( type(n) )
-
<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.
