Python Quiz
English
Intermediate
Python has become one of the most popular programming languages. Although it has a simple readable syntax, there are some Python tricks that lead programmers to fallacies. By taking this quiz, you test your python skills. (quiz for Python versions 3.6+)
Description
30
Questions
3 min
Per question
15:37
Average time
4.5
Contest Score
3.8
Community Rating
59
Participants
16 comments
Smart Tiger judge
This test may have a higher chance of receiving a reward. Nominated for:

1. Educational explanations. 👍 Explanations cover why the correct answers are correct and why the wrong answers are wrong (when appropriate). E.g.: #q1, #q2, #q3 etc

2. Well-used and self-made media. 👍 E.g.: #q1, #q2, #q3 etc
Dandy Otter judge
This test may have a higher chance of receiving a reward. Nominated for:

1. Educational explanations. 👍 Explanations cover why the correct answers are correct and why the wrong answers are wrong (when appropriate). E.g.: #q1, #q2, #q3 etc

2. Well-used and self-made media. 👍 E.g.: #q1, #q2, #q3 etc
Calm Wolf
I love the design of images, awesome work!
Savvy Skunk author
Thank you so much :)
Cool Bear
I also enjoyed the design of the images. The black background made it easy to read. I also liked that the explanations included the right format of the syntax. How did you manage to do that ?
Savvy Skunk author
Thank you for your feedback. For the explanations I used simple markdown)
Small Lizard
In explanation you said "It is not allowed to use else block after the finally block in Python. Python throws SyntaxError when such format is used. else or finally blocks can be used, but ONLY ONE OF THEM AT ONCE."
No, "else" and "finally" can be used at once, but "else" must be before "finally": https://ideone.com/7LvwaB
Savvy Skunk author
Small Lizard, thank you for noting and correcting. I totally agree with you :)
Small Lizard
Question about iterating over dict
As you said, this is highly implementation dependent, so question is incorrect (I think so)
Moreover, behaviour changed in Python 3.8
Python 3.7.3: https://ideone.com/pcHIaT (00000)
Python 3.8.2: https://repl.it/repls/ElatedEmptyMegahertz (RuntimeError)
Quiz is for Python versions 3.6+, so both options are correct
Savvy Skunk author
Oops, since I had checked this using Python version 3.6 and 3.7, I did not know that in version 3.8 it throws an error! It is my first time creating quizzes, I appreciate your corrections)
Humble Fox
Strong and well managed quiz!
Personally, this is advanced level for me.

12. What is the output of the above program?
In the question keys x,y,z but in the answer there are a,b,c. So, there is no correct answer :)

23. What is the output of the above program?
question is too hard to do this math in head. Did it only because counted letters.

PS I found a typo somewhere but forgot where. This will be your quiz to find it :D

Wish you good luck in a contest!
Savvy Skunk author
Thank you for your feedback!

Yes, seems that this mistake occurred when I decided to change the letters of the question, I changed x,y,z to a,b,c in quiz options, but forgot to upload a newer version of the image :(

Unfortunately, I did not notice that before the deadline. My bad :(
Savvy Skunk author
Guys, thank you for participating in this quiz and finding some mistakes. I really appreciate that.

If I pass this round (100% sure I won't, LOL), in the next stage I will be more attentive and will create quizzes without any kind of mistakes.
Humble Fox
Congrats!:)
Savvy Skunk author
Humble Fox Thank you)
Chilli HotHot21
Nice:-)
Take the quiz to leave a comment