jeudi 1 août 2019

Why do we have to use parenthesis in some if statements?

I am currently learning Python 2 using Code Academy. I sometimes see that some if statements have parenthesis. I wonder, is there any difference?

if(len(date) > 10): #this is the exemple given by Code Academy

if len(date) > 10: #this is my code

Aucun commentaire:

Enregistrer un commentaire