0

Hey guys! This is my first program in Python!! Probably I'm a beginner. Can someone tell me where I've went wrong?

https://code.sololearn.com/cuVM79nZIpun/?ref=app

7th Oct 2020, 12:27 PM
Siddiqa Tabassum K
Siddiqa Tabassum K - avatar
5 odpowiedzi
+ 3
Siddiqa Tabassum K Just suppose, 1)I find the correct answer to the first question, and but not the second question, what does it show? Nothing, actually. That's why I put the second "else" statement. 2) it is good to add "print(result)" statement after each input. Then the input is shown in the output. P.S Your code is good, but these tips make more sense.
7th Oct 2020, 12:45 PM
Hojiakbar
Hojiakbar - avatar
+ 6
I dont see anything wrong in the program. .
7th Oct 2020, 12:45 PM
Steve Sajeev
Steve Sajeev - avatar
+ 5
Your code is woRkiNg as you told that u are beginner after a weeks or months u will be expert so do practice more and more . you can make your code much more efficient.
7th Oct 2020, 12:49 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 3
Yeah Thank you I too do know Akbar . But can you tell me where I've went wrong?
7th Oct 2020, 12:37 PM
Siddiqa Tabassum K
Siddiqa Tabassum K - avatar
+ 2
As Siddiqa Tabassum Kb wrote: a part of second question do not have way for react on "wrong" answer. The "else" u use - is from first "if" that mesn if first answer is correct - "else" no more happening. Place another "else" for second "if"
7th Oct 2020, 1:13 PM
Alex Vernee
Alex Vernee - avatar