samedi 17 septembre 2016

Why isn't this if adding to the variable? [duplicate]

This question already has an answer here:

I am wondering why performance doesn't get sum up to 120 with this code:

performance=100

run = raw_input('select his speed')

if run==20:

    performance += 20

else:

    pass

print performance

Aucun commentaire:

Enregistrer un commentaire