dimanche 21 février 2021

Python Conditinal operator

Can you please explain how the below python code is evaluated to be True

if 50 == 10 or 30:
   print('True')
else:
   print('False')

Output: True

Aucun commentaire:

Enregistrer un commentaire