In python if you want the user to input data into the program, you can use the input()function, this is another built in functions to help us put data into our program.
Let us now look at the the input method input().
...In order to get user input in python you need to use the input() function. This puts a prompt onto the screen to allow the user to enter data. If you want to use the data in your program you have to store it in a variable . The print function can then use the variable to output our user input to the screen .
...If we want to use numbers in our code we have to change the user input to the data type of the number we want to use.
For example if the type of number we want to use is a whole number then we convert the input using the int() function.
However if the type of number we want to use was a decimal number then we convert the input using the float() function.