input() Function
Syntax:
input(prompt)prompt [optional]: any string value to display as input message
Ex: input(“What is your name? “)
Returns: Return a string value as input by the user.
By default input() function helps in taking user input as string. If any user wants to take input as int or float, we just need to typecast it.
Python input() Function
Python input() function is used to take user input. By default, it returns the user input in form of a string.