mardi 24 mars 2020

Create a list of multiples of 3 from 0 to 20

The code directions are (Create a list of multiples of 3 from 0 to 20.) the style is the needed is below. For so reason after the 'range' and before 'if', something is missing. Please help mee. Thank you

a = [i for i in range(20) ? if i % 3 ==0]

Aucun commentaire:

Enregistrer un commentaire