Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- # underscore added to not be confused with the builtin input function
- def _input(prompt=None, /):
- if prompt:
- print(prompt, end="", flush=True)
- line = sys.stdin.readline()
- if not line:
- raise EOFError
- if line[-1] == '\n':
- line = line[:-1]
- return line
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement