Python Input Function

Python Input() Function

What is input() function.

Input is the built-in function of python. It allows to take input from the userDefault, Its datatype is assign as string (str). 



Changing data type of input.



Using input() function.

To take input from the user, write q =  input ("message that you wants to print").

Taking input as a string (shown below).



Taking input as a integer (shown below).




Try to take two integer input and sum it.

Comments