0

A kind of loop

So it loops 220 times but it has a twist. Display: 1 - Gear 1 2 3 4 5 ⬇ 40 - Gear 2 41 ⬇ 60 - Gear 3 ⬇ 120 - Gear 4 ⬇ 220 - Gear 5

18th Jul 2017, 3:46 AM
Joseph Adrian Padriga
Joseph Adrian Padriga - avatar
1 Respuesta
+ 6
for i in range(1,221): if i == 1: Gear 1 elif i == 40: Gear 2 elif i == 60: Gear 3 elif i == 120: Gear 4 elif i == 220: Gear 5
18th Jul 2017, 8:13 AM
Maya
Maya - avatar