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
1 ответ
+ 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