I want to create a simple game in Python 3.8, and i need to verify an entry`s input in order to create it. Something like this:
if input.text == "":
print("Error")
but i don`t know how to do this in Python. I used to do that a lot in C# but here it s not that easy apparently.
To get an input, you can use the
inputfunction. This will automatically return a string. Here is sample usage of this:You can see the Python docs for more information about
input.