Lowest price ever! Learn Generative AI for 48% less!
Get my discount0
hi, What is this program and why this code does not work?
total=0 price=0 l=0 while l<3: l=l+1 x = input() z = int (x) if z <3: price=0 if z>=3: price=100 total+=price #price+=100 print(total) https://sololearn.com/coach/1039/?ref=app
8 Answers
+ 3
Hi Hakam!
You're supposed to take 5 inputs here. But, your code just takes first 3 inputs because of your while condition. It needs to be like this
while l<5:
+ 2
JUMP_LINK__&&__Python__&&__JUMP_LINK Learner thank you very much... i did not pay attention
+ 1
Hakam ALdeen ALkhadraa
This code is Python and it does work
+ 1
Rik Wittkopp Yes, but why do not they give me correct results in testing ... I've been checking twice a correct introduction and two securities you can check when accessing the link and seeing results
+ 1
Hakam ALdeen ALkhadraa
The challenge is a Pro challenge so only available to Pro users.
This means you must publish the challenge details here, or seek the assistance of a Solo-helper
+ 1
Rik Wittkopp Thank you I hope we will arrive for this
0
Hakam ALdeen ALkhadraa
I will try to access the challenge to look.
- 1
Why I didn't make responsive website