How the input function works in Python :
The Input is nothing but some value from a system or user.https://pynative.com/python-input-function-get-user-input/
When input() function executes program flow will be stopped until the user has given an input.
input(): Whatever you enter as input, input function convert it into a string. If you enter an integer value still input() function convert it into a string. You need to explicitly convert it into an integer in your code using typecasting.
- Use the prompt parameter to write a message before the input(‚Give me the first number: ‚)
In most cases, the corresponding cast-operator is immediately applied to the result string of input in order to obtain the data type required (like integer, float etc.) for further processing:
age = int(input(‚Your age: ‚))