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.
Exercise 13-d
Create a converter that will ask for amount of days and convert it to years, then print it.
Using int() function convert the user's answer to integer. And then make your calculation.
You can ask something like: "How many days would you like to convert to a year?"
Exercise 13-e
Let's create the same converter this time with float() function instead of int().
Exercise 13-f
Can you create a converter that converts miles to kms?