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.

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

2 Answers

0 votes
answered Sep 30, 2020 by Peter Minarik (86,040 points)
0 votes
answered Oct 6, 2020 by G4BR13l R0S4 (440 points)
print('Press a key pls')

key=input('')

print(key)
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.
...