Ask coding questions

← Back to all posts
Input without the enter key
chilipepper09 (1)

So im building a text based game but i don't like that enter needs to be pressed in order to enter the input, i was wondering if there was a way do input without the enter key

AlexanderTarn (188)

from readchar import readchar
(variable name) = readchar()
if((variable name) == (whatever):

does that help?