0

Is there a way to get input from the user in python without using the function "input"?

Need to be compatible to python 2.7 and 3.7

reut
  • 41
  • 7
  • 2
    Not written there but you can also use directly [`sys.stdin`](https://docs.python.org/3/library/sys.html#sys.stdin) – Tomerikoo Mar 25 '21 at 08:44
  • 1
    "Input from the user" could mean a lot of things. Record gestures from the camera? Voice input via microphone? Scan a document? Move the mouse? This question can hardly be answered. – Thomas Weller Mar 25 '21 at 08:44
  • 1
    I'd agree with tomerikoo's suggestion, banning `input` and reading directly from `sys.stdin` is probably the most straightforward way to handle this, though slightly less convenient. – Masklinn Mar 25 '21 at 08:46

0 Answers0