i

Python Programming

Getting user input

Python has the input ( ) function to take the user input and use in multiple ways. Please type below code in your IDLE first :

And run the program by pressing F5 and output would be below. Any number you written below it will print that function as input() has the ability to access any input.

Output :

tell me a beautiful number :6

'6'