how do i display whitch key was pressed, internet does'nt help

0 votes
asked Sep 25 by astin (120 points)
im trying to make a program that tells what key was pressed

2 Answers

0 votes
answered Sep 30 by Peter Minarik (12,220 points)
0 votes
answered Oct 6 by G4BR13l R0S4 (430 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.
...