a=[1, 2, 3, -2, -5, -6, 'geo'] for I in a: if I == star: continue if I<0: print('I=', I)
I don't know how to let my program to distill the negative numbers and print only them avoiding strings. Please help me.
Aucun commentaire:
Enregistrer un commentaire