Answer in quiz-3 Loops and Strings doubt

The answer mentioned in the quiz is wrong I have checked that answer in Jupyter so my answer appears to be correct but in the system, it is showing incorrect. I am attaching the screenshots of both
Ss1
ss2

2 Likes

@atulyaadabral260999
Yes this code will give you 1, 2 as output.
Kindly contact to your TA or support team for correction in the right option.
Thanks for your feedback
Keep practicing :heart:

1 Like

your if statement misses a colon “:”, thats why it will throw an error if run.

Okk ok now i got it thanks