Python Input Exercises
Let’s check out some exercises that will help you understand Python’s input() function better.
Exercise 13-a
Using input() function ask for user's name.
Exercise 13-b
This time ask the user a numerical question, such as, "Please enter your age." See what type of data input() returns.
Exercise 13-c
Using input() function, print() function and another function you may need; ask for the current year, then print the answer +50.
Need More Exercises?
Check out Holy Python AI+ for amazing Python learning tools.
*Includes 14 more programming languages, inspirational tools and 1-on-1 consulting options.
*Includes 14 more programming languages, inspirational tools and 1-on-1 consulting options.
Umut Sagir
Finance & Data Science Professional,
Founder of HolyPython
Founder of HolyPython