0
Let's do some magic Quiz on Python!!
I couldn't figure it out (yes I'm a noob) But even when i took a look at the solution it still didn't pass so i improvised a little #their solution: items = int(input()) days = int(input()) #your code goes here while days>0: items*=2 days-=1 print(items) #my solution: items = int(input()) days = int(input()) #your code goes here while days>0: items*=2 days-=1 if days > 0: continue print(items)
3 Réponses
+ 3
Anouar Maazaz
Program is working fine but you need to print value outside the loop
no need to use continue
+ 1
Anouar Maazaz
I already said print outside the while loop
btw why use used continue?
do you know why use continue?
0
how can i print only the last value without using "continue"