Is this Python Challenge Question correct? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Is this Python Challenge Question correct?

I tried running code in a code challenge here: https://cernbox.cern.ch/s/xZ5WrNk19ovil5a And it says: File "./Playground/file0.py", line 3 if y[b] % [b]2 == 0: ^ SyntaxError: invalid syntax As you can see here: https://www.sololearn.com/compiler-playground/cho5bnsPBrMs However, info@sololearn.com says: "We’ve investigated and are not finding a problem with the lesson. We recommend you reach out to our friendly community if you’re struggling with the content. Head on over to our Discuss Q&A forum to ask any programming-related questions you might have and they will be happy to help." So, here I am. What am I missing? Did this work in an earlier Python version?

14th Jun 2023, 3:32 PM
Edward Finkelstein
Edward Finkelstein - avatar
2 Answers
+ 5
[b] [/b] is bbcode formatting markup for bold text. It should not be part of the python code. The question is messed up.
14th Jun 2023, 4:53 PM
Tibor Santa
Tibor Santa - avatar
+ 4
There should be y % 2 == 0: challenge question is wrong.
14th Jun 2023, 3:45 PM
A͢J
A͢J - avatar