+ 1

++ and -- in python challenges

Why some challenges in python contain C-like code strings, f.e. 't++'? It is stated in Python Tutorial course (module 1.11), that python doesn't have such features.

31st Dec 2016, 1:28 AM
Dmitry Zolnikov
Dmitry Zolnikov - avatar
3 ответов
+ 6
They dont. They are in almost language, but people want the quiz creator badge I guess.
31st Dec 2016, 1:33 AM
Nahuel
Nahuel - avatar
+ 1
python doesn't have them, that's why they add nothing to the required output in the challenges
31st Dec 2016, 1:35 AM
Valentino Ugbala
Valentino Ugbala - avatar
+ 1
Ok, that explains why they are in challenges. But wouldn't they raise an error, since they are not supported in python? If they do raise error - that means all code after them won't be executed, and there will be no output, if print function placed after them.
31st Dec 2016, 2:33 AM
Dmitry Zolnikov
Dmitry Zolnikov - avatar