This question already has an answer here:
- Python: truth value of python string 3 answers
While learning Python I stumbled upon a conditional statement that doesn't have a full condition and I can't seem to figure out the use.
if number: print ("2")
What is being compared to number
? I can't seem to figure out when it's true and when it's false.
Aucun commentaire:
Enregistrer un commentaire