lundi 29 mars 2021

I have this if statement, however it is not reaching the print, why? [duplicate]

I have this code:

    first_command = "moved"
    second_command = "moved"
    third_command = "moved"

    if first_command == second_command == third_command == "moved":
       print("Same")

I don't get an error but it doesn't print "Same". any ideas why? Thanks

Aucun commentaire:

Enregistrer un commentaire