How does the input function work in python?
Answers
Answered by
3
Answer:
When input() function executes program flow will be stopped until the user has given an input.
The text or message display on the output screen to ask a user to enter input value is optional i.e. the prompt, will be printed on the screen is optional.
Answered by
0
Answer:
- When input() function executes program flow will be stopped until the user has given an input.
- The text or message display on the output screen to ask a user to enter input value is optional i.e. the prompt, will be printed on the screen is optional.
- 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.
Similar questions
English,
2 months ago
Math,
5 months ago
Social Sciences,
5 months ago
English,
11 months ago
English,
11 months ago