Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.
Login
Login
OnlineGDB Q&A
Questions
Unanswered
Tags
Ask a Question
Ask a Question
how do i display whitch key was pressed, internet does'nt help
–1
vote
asked
Sep 25, 2020
by
astin
(
110
points)
im trying to make a program that tells what key was pressed
couldnt-find-answer-on-internet
probably-isnt-hard-im-just-dumb
very-urgent
python-3
-trying-to-start-coding-
Your answer
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or register.
2 Answers
0
votes
answered
Sep 30, 2020
by
Peter Minarik
(
79,800
points)
Does this help?
https://stackoverflow.com/questions/24072790/detect-key-press-in-python
Your comment on this answer:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or register.
0
votes
answered
Oct 6, 2020
by
G4BR13l R0S4
(
440
points)
print('Press a key pls')
key=input('')
print(key)
Your comment on this answer:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or register.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...