We might want to take user input at some point in the program. Python provides an input() function for this purpose. Python takes all the input as a string input by default. To convert it to any other data type we have to convert the input explicitly. For example, to convert the input to int or float we have to use the int() and float() method respectively.
my_hobby = input("Enter your hobby")
my_salary = float(input("Enter your Salary"))
my_age = int(input("Enter your age"))