while True:
entrance = input()
if entrance != 'stop':
self.driver.refresh()
I am having a hard time understanding how to end a program only when the user types in something like 'stop'. Right now the program takes a pause and waits for user input before continuing. I want the program to keep running the if statement continuously and only stop when the user types in 'stop'. ( in other words, the program is listening to user input and if user doesn't type anything it keeps going, but only when the word 'stop' is typed does it come to an end.)