iwith the value 1, type this in the interpreter:
input()function to do so.
inputtakes a string argument which is the message it should print while taking the input.
inputreturns a string. We have to convert a variable from string to integer by using the
int()function. Each data type provides a function for data type conversion, for instance,
str()is used to convert a value from other data type to string.
age = int(age), this is not a syntax error, because the interpreter is going to create a new integer variable with the name of age (and delete the old string variable).
'this is a string', "this is a string", "'this is a string", '"this is a string', """ this is 'a string '""", '"""hi'
"python''are invalid strings. Both of them do not start and end with the same quote.
Falseare special values in Python3. In previous version of the language, we were allowed to create a variable of name True and False, but now they are reserved.