vendredi 27 janvier 2017

conditional without a condition? [duplicate]

This question already has an answer here:

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