0
Empty Input Python
How do I use an if statement to check if user input is empty? It keeps giving me an error whatever I try.
2 ответов
+ 1
In which language? Can you add more info, we will able to help you with the problem.
+ 5
Adding programming language tag will increase your chances to get better help.
It'll depend upon what the input function returns if no input provided. In case of Python it returns an empty string so you can check the length of whatever returned if it's not 0.