Plz help in my code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
22nd May 2020, 11:39 AM
Najib Shaikh
Najib Shaikh - avatar
13 Answers
+ 2
Hello again, I totally remade the code using functions and making it more readable. Note: Enter the answer with mango Not use number. https://code.sololearn.com/cf3OV5R69Epj/?ref=app
22nd May 2020, 3:31 PM
Josshual A. Toro M.
Josshual A. Toro M. - avatar
+ 2
see this.. it will be helpful and easy to understand.. https://code.sololearn.com/cLu83Yiee1v2/?ref=app
24th May 2020, 10:36 AM
Rahul Gupta
Rahul Gupta - avatar
+ 1
Yeah that's good
22nd May 2020, 2:48 PM
Najib Shaikh
Najib Shaikh - avatar
0
How? What do you want to do and what is the problem doing it?
22nd May 2020, 11:56 AM
Slick
Slick - avatar
0
It's showing erorr in line 24. And not running
22nd May 2020, 11:58 AM
Najib Shaikh
Najib Shaikh - avatar
0
Alright, what is the "option_1" code there for? Seems extra
22nd May 2020, 12:06 PM
Slick
Slick - avatar
22nd May 2020, 12:09 PM
Slick
Slick - avatar
0
How say Slick the option Yes is extra and the cause of error. ans = input() never readed. https://code.sololearn.com/c8H2CKgo9Mwe/?ref=app
22nd May 2020, 2:05 PM
Josshual A. Toro M.
Josshual A. Toro M. - avatar
0
I want that so that if user want to skip one question he can.
22nd May 2020, 2:38 PM
Najib Shaikh
Najib Shaikh - avatar
0
Skip it? Its a quiz, they shouldnt be able to, thats kinda the point. But what happens if the user skips a question? Minus how many points?
22nd May 2020, 2:41 PM
Slick
Slick - avatar
0
No deduction of point for skipping question. As it hapeens in competitive exams.
22nd May 2020, 2:44 PM
Najib Shaikh
Najib Shaikh - avatar
0
I updated the code i posted, check it out.
22nd May 2020, 2:46 PM
Slick
Slick - avatar
0
That's great
22nd May 2020, 3:54 PM
Najib Shaikh
Najib Shaikh - avatar