Monday, 1 August 2016

Getting User Input in Python

Getting user input is easy in Python as compared to C Plus Plus or JAVA. I like how easy it is with Python. All we use is a function called raw_input() and it does the job for us. Here's the code for getting user input in Python -

And it will get us the following result -

No comments:

Post a Comment