What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-24 18:54:03
how to check if user pressed enter in python
# credit to the Stack Overflow user in source link text = input("type in enter") # or raw_input in python2 if text == "": print("you pressed enter") else: print("you typed some text before pressing enter") Add solution
Best helpers
Ranking is empty