Computer Science, asked by harshitkumar00010, 5 months ago

How does the input function work in python?​

Answers

Answered by DeathAura
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 tejaswi6825
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