vendredi 31 janvier 2020

is there any way to initialize a variable , when we writing the condition of if, and then compare

if (n=2+3)==5: print(n)

I executed the above code in python but it was showing an error in "if condition" . i want to know whether there is a way to achieve this.

Aucun commentaire:

Enregistrer un commentaire