Skip to content
Sign UpLog In
Profile icon

Lucas Sadoulet

@SilentS100
Repls
Community
SilentS100
SilentS100
shared a Post
4 years ago
Auto Enter
Is there a way to make python enter the first thing you type in a input (with out you clicking ‘enter’)
techpixel
techpixel
Maybe getch?4 years ago
Scoder12
Scoder12
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.4 years ago