Project Management Answers

Which I/O stream are we using when we use the input function to accept user input in a Python script?

Q: Which I/O stream are we using when we use the input function to accept user input in a Python script?

or

Q: When we use the input function in a Python script to receive user input, which I/O stream is being used?

  • STDOUT
  • STDERR
  • STDIN
  •     SYS

Explanation: When we use the input() method in Python to receive input from the user, we are reading data from the standard input stream, often known as STDIN. During the course of the program’s execution, the user is able to directly enter data, thanks to this function.

Leave a Reply

Your email address will not be published. Required fields are marked *