I need help with my code because the I run it gives me what I need but it execute another line also
Welcome to Ask! Could you please provide the link you your Repl so we can take a look?
Can you please explain what you don’t like about your program and how you want it to run? It seems fine to me.
I want THAT WHEN THE FIRST INPUT IS WRONG DO NOT PRINT THE SECOND INPUT ANSWER BUT IT DO IT I DONT KNOW WHY
Get the if statements that check the age to determine if the amount is correct.
You could put an if
statement regarding your first input so that it only runs the second input if the first input is valid.
Greetings, @kamalmukhtar, and a warm welcome to our community! After a thorough examination of your code, I’ve been inspired to offer a potential revision. However, I’d like to kindly inquire whether you feel confident in your ability to comprehensively grasp and interpret the revised code. Should you desire, I’d be more than happy to share my modified version with you :)).
thanks for helping I found the solution and it was a assignment for my python class anyone can copy it if you guys need it.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.