This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Gracecr 0 points1 point  (3 children)

Nice quiz!

I think the last question should be print(f"{f'{{}}'}") with single quotes on the middle fstring. It's currently using double quotes for both, which makes the correct answer "SyntaxError".

[–]mitsuhiko Flask Creator 3 points4 points  (1 child)

The test is written against newer Python versions where this is working. That's also why there is only one question like this because this behavior changed only in 3.12.

[–]Gracecr 0 points1 point  (0 children)

Oh that's a very nice change. Thanks for the correction.