Python Variables and Input

To get and store information from the user in python, you can use input, as shown here:



In python, you don't need to set the type of your variables in advance. Notice that you can skip the print statement and ask the user for what to type directly in the input function, as shown here in the second example.