Is there a way of reading one single character from the user input? For instance, they press one key at the terminal and it is returned (sort of like getch()).
getch()
if you just want to hold the screen so you can see the result on the terminal just write
input()
at the end of the code and it will hold the screen