The program reaches a certain point and then waits for the user to input some data that the program can use later. Of course, getting information from the user would be useless if we didn't have anywhere to put that information and this is where variables come in. In the previous program s is a variable. Variables are like a box that can store some piece of data. The two basic types are strings and numbers.
Strings are a sequence of letters, numbers and other characters.
The other type of variables are numbers. Okay, so we have these boxes called variables and also data that can go into the variable. The second half of the program uses type which tells what a variable is. Strings are of type string . Notice also how when python multiples a number by a integer the expected thing happens.