shouldnt the output be:
I will attend all the lectures
i will eat pizza
and i will eat pizza
there’s no option for this in the quiz
shouldnt the output be:
I will attend all the lectures
i will eat pizza
and i will eat pizza
there’s no option for this in the quiz
i meant if the output i say is correct
here’s the link to the quiz , it was the last(19th) question when i gave it
https://online.codingblocks.com/app/player/209779/content/201859/5741/quiz/76/s/173583?q=19
hey @devchopra999_11c6416ab7f09bbf ,
sorry to be late ,
actually i guess i don’t have access to this link , so can you share a screenshot or paste the question along with options here
a= “College”
b=“didn’t do college”
if a == “College”:
print(“i will attend all the lectures”)
print(“i will eat pizza”)
else:
print(“I will go for shopping”)
print(‘and i will eat pizza’)
print(‘and i will eat pizza’)
options:
a) i will attend all the lectures
and i will eat pizza
and i will eat pizza
b) i will attend lectures
c) invalid syntax
d) i will attend all the lectures
and i will eat pizza
how can i will eat pizza , be between if and else , and also indented out of that condition
hence it forms a syntax error
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.