how the program excute and what is meaning of the 'else'
for x in [1,4,7]: if x%2==0: print('even',x) else: print('odd')
output: even 4 odd
Aucun commentaire:
Enregistrer un commentaire