Is there a way to make python enter the first thing you type in a input (with out you clicking ‘enter’)
You are viewing a single comment. View All
Yes. You can use
import sys import tty tty.setraw(sys.stdin) letter = sys.stdin.read(1) # put however many characters you want print(letter)
I am a repl.it helper. If this is a good answer please upvote.