jeudi 7 avril 2016

How do you compare a list with an integer in an 'if' statement? Python

if list_1 > 20:

    list_1-5

I am trying to minus 5 for every index in the list that is over 20. Thank you for your help :)

Aucun commentaire:

Enregistrer un commentaire