
    
        
        
        
                
        
        
        
                
        
        
        
                
        
        
        
            
{"version":"https:\/\/jsonfeed.org\/version\/1","title":"mathspp.com feed","home_page_url":"https:\/\/mathspp.com\/blog\/tags\/quiz","feed_url":"https:\/\/mathspp.com\/blog\/tags\/quiz.json","description":"Stay up-to-date with the articles on mathematics and programming that get published to mathspp.com.","author":{"name":"Rodrigo Gir\u00e3o Serr\u00e3o"},"items":[{"title":"Who wants to be a millionaire: iterables edition","date_published":"2026-04-09T23:17:00+02:00","id":"https:\/\/mathspp.com\/blog\/who-wants-to-be-a-millionaire-iterables-edition","url":"https:\/\/mathspp.com\/blog\/who-wants-to-be-a-millionaire-iterables-edition","content_html":"<p>Play this short quiz to test your Python knowledge!<\/p>\n\n<script src=\"\/user\/themes\/myquark\/js\/quiz.js\"><\/script>\n<link rel=\"stylesheet\" href=\"\/user\/themes\/myquark\/css\/quiz-custom.css\">\n<p>At PyCon Lithuania 2026 I did a lightning talk where I presented a \u201cWho wants to be a millionaire?\u201d Python quiz, themed around iterables.\nThere's a whole performance during the lightning talk which was recorded and will be eventually linked to from here.\nThis article includes only the four questions, the options presented, and a basic system that allows you to check whether you got it right or not.<\/p>\n<h2 id=\"question-1\">Question 1<a href=\"#question-1\" class=\"toc-anchor after\" data-anchor-icon=\"#\" aria-label=\"Anchor\"><\/a><\/h2>\n<p>This is an easy one to get you started.\nIt makes more sense if you watch the <em>performance<\/em> of the lightning talk.<\/p>\n<div class=\"quiz-question\" data-correct=\"a\">\n  <div class=\"question-text\"><p>What is the output of the following Python program?<\/p><\/div>\n  <pre><code class=\"language-py hljs language-python\">print(\"Hello, world!\")<\/code><\/pre>\n  <ul class=\"choices\"><li data-option=\"a\">Hello, world!<\/li>\n    <li data-option=\"b\">Hello world!<\/li>\n    <li data-option=\"c\">Hello world<\/li>\n    <li data-option=\"d\">Hello world!!<\/li>\n  <\/ul><p class=\"feedback\"><\/p>\n<\/div>\n<h2 id=\"question-2\">Question 2<a href=\"#question-2\" class=\"toc-anchor after\" data-anchor-icon=\"#\" aria-label=\"Anchor\"><\/a><\/h2>\n<div class=\"quiz-question\" data-correct=\"a\">\n  <div class=\"question-text\"><p>What is the output of the following Python program?<\/p><\/div>\n  <pre><code class=\"language-py hljs language-python\">squares = (x ** 2 for x in range(3))\nprint(type(squares))<\/code><\/pre>\n  <ul class=\"choices\"><li data-option=\"a\"><code>&lt;class 'generator'&gt;<\/code><\/li>\n    <li data-option=\"b\"><code>&lt;class 'gen_expr'&gt;<\/code><\/li>\n    <li data-option=\"c\"><code>&lt;class 'list'&gt;<\/code><\/li>\n    <li data-option=\"d\"><code>&lt;class 'tuple'&gt;<\/code><\/li>\n  <\/ul><p class=\"feedback\"><\/p>\n<\/div>\n<h2 id=\"question-3\">Question 3<a href=\"#question-3\" class=\"toc-anchor after\" data-anchor-icon=\"#\" aria-label=\"Anchor\"><\/a><\/h2>\n<p>This was a reference to the talk I'd given earlier today, where I talked about <code>tee<\/code>.\nThe only object in <code>itertools<\/code> that is not an iterable.<\/p>\n<div class=\"quiz-question\" data-correct=\"a\">\n  <div class=\"question-text\"><p>Out of the 20, how many objects in <code>itertools<\/code> are iterables?<\/p><\/div>\n  <ul class=\"choices\"><li data-option=\"a\">19<\/li>\n    <li data-option=\"b\">20<\/li>\n    <li data-option=\"c\">1<\/li>\n    <li data-option=\"d\">0<\/li>\n  <\/ul><p class=\"feedback\"><\/p>\n<\/div>\n<h2 id=\"question-4\">Question 4<a href=\"#question-4\" class=\"toc-anchor after\" data-anchor-icon=\"#\" aria-label=\"Anchor\"><\/a><\/h2>\n<div class=\"quiz-question\" data-correct=\"d\">\n  <div class=\"question-text\"><p>What is the output of the following Python program?<\/p><\/div>\n  <pre><code class=\"language-py hljs language-python\">from itertools import *\n\nprint(sum(chain.from_iterable(chain(*next(\nislice(permutations(islice(batched(pairwise(\ncount()),5),3,9)),15,None)))))<\/code><\/pre>\n  <ul class=\"choices\"><li data-option=\"a\">1800<\/li>\n    <li data-option=\"b\">0<\/li>\n    <li data-option=\"c\">\ud83c\uddf1\ud83c\uddf9\u2764\ufe0f\ud83d\udc0d<\/li>\n    <li data-option=\"d\"><code>SyntaxError<\/code><\/li>\n  <\/ul><p class=\"feedback\"><\/p>\n<\/div>","summary":"Play this short quiz to test your Python knowledge!","date_modified":"2026-04-09T22:29:23+02:00","tags":["python","quiz"],"image":"\/user\/pages\/02.blog\/who-wants-to-be-a-millionaire-iterables-edition\/thumbnail.webp"},{"title":"Python quiz: EuroPython 2025 edition","date_published":"2025-07-16T18:14:00+02:00","id":"https:\/\/mathspp.com\/blog\/python-quiz-europython-2025-edition","url":"https:\/\/mathspp.com\/blog\/python-quiz-europython-2025-edition","content_html":"<p>Answer this quiz to test your knowledge about the Python language, community, andd the 2025 edition of EuroPython!<\/p>\n\n<script src=\"\/user\/themes\/myquark\/js\/quiz.js\"><\/script><link rel=\"stylesheet\" href=\"\/user\/themes\/myquark\/css\/quiz-custom.css\"><p>These are the questions asked during <a href=\"https:\/\/ep2025.europython.eu\/session\/python-quiz\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">the EuroPython 2025 quiz<\/a>.\nThey will test your knowledge of the Python language, the community, and of EuroPython 2025.\n(Unless explicitly stated, questions refer to CPython 3.13.)<\/p>\n<p>At the conference, participants played to win two awesome prizes:<\/p>\n<ol><li>3D printer<\/li>\n<li>EuroPython 2026 ticket<\/li>\n<\/ol><p>A couple of PyCharm vouchers were also raffled among the participating players.<\/p>\n<h2 id=\"questions\">Questions<a href=\"#questions\" class=\"toc-anchor after\" data-anchor-icon=\"#\" aria-label=\"Anchor\"><\/a><\/h2>\n<div class=\"quiz-question\" data-correct=\"d\">\n  <div class=\"question-text\"><p>Where is EuroPython 2025 being held?<\/p><\/div>\n  <ul class=\"choices\"><li data-option=\"a\">Bikini Bottom<\/li>\n    <li data-option=\"b\">Camelot<\/li>\n    <li data-option=\"c\">Hogwarts<\/li>\n    <li data-option=\"d\">Prague<\/li>\n  <\/ul><p class=\"feedback\"><\/p>\n<\/div>\n<div class=\"quiz-question\" data-correct=\"b\">\n  <div class=\"question-text\"><p>What's the source of inspiration for Python's name?<\/p><\/div>\n  <ul class=\"choices\"><li data-option=\"a\">Ball Python (snake)<\/li>\n    <li data-option=\"b\">Monty Python (comedy troupe)<\/li>\n    <li data-option=\"c\">Python (psychedelic doom metal band)<\/li>\n  <\/ul><p class=\"feedback\"><\/p>\n<\/div>\n<div class=\"quiz-question\" data-correct=\"b\">\n  <div class=\"question-text\"><p>Which of these was not a Summit held at EuroPython 2025?<\/p><\/div>\n  <ul class=\"choices\"><li data-option=\"a\">C API Summit<\/li>\n    <li data-option=\"b\">PyScript Summit<\/li>\n    <li data-option=\"c\">Rust Summit<\/li>\n    <li data-option=\"c\">WebAssembly Summit<\/li>\n  <\/ul><p class=\"feedback\"><\/p>\n<\/div>\n<div class=\"quiz-question\" data-correct=\"c\">\n  <div class=\"question-text\"><p>Which of these is not a module from the standard library?<\/p><\/div>\n  <ul class=\"choices\"><li data-option=\"a\"><code>__future__<\/code><\/li>\n    <li data-option=\"b\"><code>antigravity<\/code><\/li>\n    <li data-option=\"c\"><code>dataclass<\/code><\/li>\n    <li data-option=\"d\"><code>this<\/code><\/li>\n  <\/ul><p class=\"feedback\"><\/p>\n<\/div>\n<div class=\"quiz-question\" data-correct=\"b\">\n  <div class=\"question-text\"><p>Of these four developers, who's been a Python core developer the longest?<\/p><\/div>\n  <ul class=\"choices\"><li data-option=\"a\">Diego Russo<\/li>\n    <li data-option=\"b\">Hynek Schlawack<\/li>\n    <li data-option=\"c\">Pablo Galindo Salgado<\/li>\n    <li data-option=\"d\">Savannah Bailey<\/li>\n  <\/ul><p class=\"feedback\"><\/p>\n<\/div>\n<div class=\"quiz-question\" data-correct=\"c\">\n  <div class=\"question-text\"><p>Which of the following is not a Python keyword?<\/p><\/div>\n  <ul class=\"choices\"><li data-option=\"a\"><code>_<\/code><\/li>\n    <li data-option=\"b\"><code>finally<\/code><\/li>\n    <li data-option=\"c\"><code>throw<\/code><\/li>\n    <li data-option=\"d\"><code>type<\/code><\/li>\n  <\/ul><p class=\"feedback\"><\/p>\n<\/div>\n<div class=\"quiz-question\" data-correct=\"c\">\n  <div class=\"question-text\"><p>What's printed if you run this code?<\/p><\/div>\n\n  <div>\n<p><img alt=\"Image containing a snippet of code that contains a function decorated by a lambda function.\" src=\"\/user\/pages\/02.blog\/python-quiz-europython-2025-edition\/_decorators.webp\"><\/p>\n<\/div>\n\n  <ul class=\"choices\"><li data-option=\"a\"><code>...<\/code><\/li>\n    <li data-option=\"b\">20<\/li>\n    <li data-option=\"c\">Ellipsis<\/li>\n    <li data-option=\"d\">Nothing; you get a <code>SyntaxError<\/code>\n<\/li>\n  <\/ul><p class=\"feedback\"><\/p>\n<\/div>\n<div class=\"quiz-question\" data-correct=\"b\">\n  <div class=\"question-text\"><p>What's the output you get if you run this code in a fresh REPL session?<\/p><\/div>\n\n  <div>\n<p><img alt=\"Image containing a snippet of code that contains the following code: &amp;gt;&amp;gt;&amp;gt; import builtins; &amp;gt;&amp;gt;&amp;gt; len(dir(builtins)); 159; &amp;gt;&amp;gt;&amp;gt; len(dir(builtins)); ???\" src=\"\/user\/pages\/02.blog\/python-quiz-europython-2025-edition\/_builtins.webp\"><\/p>\n<\/div>\n\n  <ul class=\"choices\"><li data-option=\"a\">159<\/li>\n    <li data-option=\"b\">160<\/li>\n    <li data-option=\"c\"><code>RuntimeError<\/code><\/li>\n    <li data-option=\"d\"><code>ValueError<\/code><\/li>\n  <\/ul><p class=\"feedback\"><\/p>\n<\/div>\n<h2 id=\"explanations\">Explanations<a href=\"#explanations\" class=\"toc-anchor after\" data-anchor-icon=\"#\" aria-label=\"Anchor\"><\/a><\/h2>\n<h3 id=\"question-4-standard-library-modules\">Question 4 &ndash; standard library modules<a href=\"#question-4-standard-library-modules\" class=\"toc-anchor after\" data-anchor-icon=\"#\" aria-label=\"Anchor\"><\/a><\/h3>\n<p><code>__future__<\/code> is a module from the standard library that allows you to write &ldquo;future statements&rdquo;.\nAlthough it interacts with funky special cases in the compiler, there <em>is<\/em> a module named <code>__future__<\/code> you can import.<\/p>\n<p>The module <code>this<\/code> will print the Zen of Python and the module <code>antigravity<\/code> is an Easter Egg related to <a href=\"https:\/\/xkcd.com\/353\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">xkcd comic 353<\/a>.<\/p>\n<p>You can verify all these by opening a 3.13 REPL and typing <code>import ???<\/code>.\n<code>dataclass<\/code>, however, was just a play on the fact that the well-known module from the standard library is called <code>dataclasses<\/code>.<\/p>\n<h3 id=\"question-6-python-keywords\">Question 6 &ndash; Python keywords<a href=\"#question-6-python-keywords\" class=\"toc-anchor after\" data-anchor-icon=\"#\" aria-label=\"Anchor\"><\/a><\/h3>\n<p>Python 3.13 has four <em>soft<\/em> keywords: <code>case<\/code>, <code>match<\/code>, <code>type<\/code>, ... and <code>_<\/code>!\nSoft keywords are keywords that are only keywords in specific statements and can be used as regular variables elsewhere, and <code>_<\/code> is a soft keyword in the context of <code>case _:<\/code> as a catch-all pattern while <a href=\"\/blog\/til\/type-statement-and-type-aliases\"><code>type<\/code> is a soft keyword used for type aliases<\/a>.<\/p>\n<p><code>finally<\/code> is a keyword used in error handling.<\/p>\n<p>This means <code>throw<\/code> can't be a Python keyword.<\/p>\n<p>In any instance, you can verify this with the module <code>keyword<\/code> from the standard library:<\/p>\n<pre><code class=\"language-py\">import keyword\n\nassert \"_\" in keyword.softkwlist\nassert \"type\" in keyword.softkwlist\nassert \"finally\" in keyword.kwlist\nassert \"throw\" not in (keyword.kwlist + keyword.softkwlist)<\/code><\/pre>\n<h3 id=\"question-7-crazy-decorators\">Question 7 &ndash; crazy decorators<a href=\"#question-7-crazy-decorators\" class=\"toc-anchor after\" data-anchor-icon=\"#\" aria-label=\"Anchor\"><\/a><\/h3>\n<p>The question asks what's the output of this code:<\/p>\n<pre><code class=\"language-py\">@lambda fn: lambda x: ...\ndef what(the):\n    return 2 * the\n\nprint(what(10))<\/code><\/pre>\n<p>The at sign <code>@<\/code> syntax for decorators was extended in Python 3.9 so that any valid Python expression can be used as a decorator.\nSo, this is valid syntax, even though it broke my syntax highlighter.<\/p>\n<p><code>@lambda fn: (...)<\/code> is...<\/p>","summary":"Answer this quiz to test your knowledge about the Python language, community, andd the 2025 edition of EuroPython!","date_modified":"2025-07-23T16:49:02+02:00","tags":["python","quiz"],"image":"\/user\/pages\/02.blog\/python-quiz-europython-2025-edition\/thumbnail.webp"},{"title":"Python quiz: PyCon Italia 2025 edition","date_published":"2025-05-30T18:14:00+02:00","id":"https:\/\/mathspp.com\/blog\/python-quiz-pycon-italia-2025-edition","url":"https:\/\/mathspp.com\/blog\/python-quiz-pycon-italia-2025-edition","content_html":"<p>Answer this quiz to test your knowledge about the Python language, community, andd the 2025 edition of PyCon Italy!<\/p>\n\n<script src=\"\/user\/themes\/myquark\/js\/quiz.js\"><\/script>\n<link rel=\"stylesheet\" href=\"\/user\/themes\/myquark\/css\/quiz-custom.css\">\n<p>These are the questions asked during the PyCon Italy 2025 quiz.\nThey will test your knowledge of the Python language, the community, and of PyCon Italy 2025.\n(Unless explicitly stated, questions refer to CPython 3.13 and \u201ctoday\u201d refers to the 30th of May of 2025.)<\/p>\n<p>At the conference, participants played to win some awesome prizes:<\/p>\n<ol>\n<li>Flipper Zero<\/li>\n<li>PyCon Italy 2026 ticket<\/li>\n<li>Microbit lab<\/li>\n<\/ol>\n<p>I'd like to give an awesome shoutout to the PyCon Italy organizers who went with my idea to have a quiz at the conference and who did an amazing job at getting these incredible prizes.<\/p>\n<h2 id=\"round-1\">Round 1<a href=\"#round-1\" class=\"toc-anchor after\" data-anchor-icon=\"#\" aria-label=\"Anchor\"><\/a><\/h2>\n<div class=\"quiz-question\" data-correct=\"a\">\n  <div class=\"question-text\"><p>In what Italian city is PyCon Italy 2025 being held?<\/p><\/div>\n  <ul class=\"choices\">\n<li data-option=\"a\">Bologna<\/li>\n    <li data-option=\"b\">Firenze \/ Florence<\/li>\n    <li data-option=\"c\">Pisa<\/li>\n    <li data-option=\"d\">Roma \/ Rome<\/li>\n  <\/ul>\n<p class=\"feedback\"><\/p>\n<\/div>\n<div class=\"quiz-question\" data-correct=\"a\">\n  <div class=\"question-text\"><p>The Python logo alludes to snakes, but what's the source of inspiration for Python's name?<\/p><\/div>\n  <ul class=\"choices\">\n<li data-option=\"a\">A comedy troupe<\/li>\n    <li data-option=\"b\">A Dutch heavy-metal band<\/li>\n    <li data-option=\"c\">A quaint Dutch town<\/li>\n    <li data-option=\"d\">A wrestling fighter<\/li>\n  <\/ul>\n<p class=\"feedback\"><\/p>\n<\/div>\n<div class=\"quiz-question\" data-correct=\"b\">\n  <div class=\"question-text\"><p>What is the date of the oldest commit in the Python repo?<\/p><\/div>\n  <ul class=\"choices\">\n<li data-option=\"a\">Circa 300 AC<\/li>\n    <li data-option=\"b\">Aug 9, 1990<\/li>\n    <li data-option=\"c\">Oct 16, 2000<\/li>\n    <li data-option=\"d\">Jan 1, 2020<\/li>\n  <\/ul>\n<p class=\"feedback\"><\/p>\n<\/div>\n<div class=\"quiz-question\" data-correct=\"b\">\n  <div class=\"question-text\"><p>Who is the most recent Python core developer?<\/p><\/div>\n  <ul class=\"choices\">\n<li data-option=\"a\">B\u00e9n\u00e9dikt Tran<\/li>\n    <li data-option=\"b\">Diego Russo<\/li>\n    <li data-option=\"c\">Matt Page<\/li>\n    <li data-option=\"d\">Savannah Bailey<\/li>\n  <\/ul>\n<p class=\"feedback\"><\/p>\n<\/div>\n<div class=\"quiz-question\" data-correct=\"b\">\n  <div class=\"question-text\"><p>As of today, which of these popular packages has the most GitHub stars?<\/p><\/div>\n  <ul class=\"choices\">\n<li data-option=\"a\">Django<\/li>\n    <li data-option=\"b\">FastAPI<\/li>\n    <li data-option=\"c\">pandas<\/li>\n    <li data-option=\"d\">Polars<\/li>\n  <\/ul>\n<p class=\"feedback\"><\/p>\n<\/div>\n<div class=\"quiz-question\" data-correct=\"c\">\n  <div class=\"question-text\"><p>How many built-in \u201cfunctions\u201d does Python's documentation list?<\/p><\/div>\n  <ul class=\"choices\">\n<li data-option=\"a\">42<\/li>\n    <li data-option=\"b\">53<\/li>\n    <li data-option=\"c\">71<\/li>\n    <li data-option=\"d\">99<\/li>\n  <\/ul>\n<p class=\"feedback\"><\/p>\n<\/div>\n<div class=\"quiz-question\" data-correct=\"b\">\n  <div class=\"question-text\"><p>What's the output you get if you run this code in a fresh REPL session?<\/p><\/div>\n\n  <div>\n<p><img alt=\"Image containing a snippet of code that contains the following code: &amp;gt;&amp;gt;&amp;gt; import builtins; &amp;gt;&amp;gt;&amp;gt; len(dir(builtins)); 159; &amp;gt;&amp;gt;&amp;gt; len(dir(builtins)); ???\" src=\"\/user\/pages\/02.blog\/python-quiz-pycon-italia-2025-edition\/_builtins.webp\"><\/p>\n<\/div>\n\n  <ul class=\"choices\">\n<li data-option=\"a\">159<\/li>\n    <li data-option=\"b\">160<\/li>\n    <li data-option=\"c\">RuntimeError<\/li>\n    <li data-option=\"d\">ValueError<\/li>\n  <\/ul>\n<p class=\"feedback\"><\/p>\n<\/div>\n<div class=\"quiz-question\" data-correct=\"b\">\n  <div class=\"question-text\"><p>Which of the following is not a module from the standard library?<\/p><\/div>\n  <ul class=\"choices\">\n<li data-option=\"a\">antigravity<\/li>\n    <li data-option=\"b\">regex<\/li>\n    <li data-option=\"c\">this<\/li>\n    <li data-option=\"d\">webbrowser<\/li>\n  <\/ul>\n<p class=\"feedback\"><\/p>\n<\/div>\n<h2 id=\"round-2\">Round 2<a href=\"#round-2\" class=\"toc-anchor after\" data-anchor-icon=\"#\" aria-label=\"Anchor\"><\/a><\/h2>\n<div class=\"quiz-question\" data-correct=\"b\">\n  <div class=\"question-text\"><p>Approximately how many core developers does Python have (past &amp; present)?<\/p><\/div>\n  <ul class=\"choices\">\n<li data-option=\"a\">50<\/li>\n    <li data-option=\"b\">100<\/li>\n    <li data-option=\"c\">200<\/li>\n    <li data-option=\"d\">400<\/li>\n  <\/ul>\n<p class=\"feedback\"><\/p>\n<\/div>\n<div class=\"quiz-question\" data-correct=\"c\">\n  <div class=\"question-text\"><p>What's the name of the key organisation that supports the Python language, the ecosystem, and the community?<\/p><\/div>\n  <ul class=\"choices\">\n<li data-option=\"a\">Guido &amp; Co.<\/li>\n    <li data-option=\"b\">PyPI<\/li>\n    <li data-option=\"c\">Python Software Foundation<\/li>\n    <li data-option=\"d\">Snakes United<\/li>\n  <\/ul>\n<p class=\"feedback\"><\/p>\n<\/div>\n<div class=\"quiz-question\" data-correct=\"b\">\n  <div class=\"question-text\"><p>Which of these is not a real Python package listed on PyPI?<\/p><\/div>\n  <ul class=\"choices\">\n<li data-option=\"a\">lasagna<\/li>\n    <li data-option=\"b\">piadina<\/li>\n    <li data-option=\"c\">pizza<\/li>\n    <li data-option=\"d\">tagliatelle<\/li>\n  <\/ul>\n<p class=\"feedback\"><\/p>\n<\/div>\n<div class=\"quiz-question\" data-correct=\"d\">\n  <div class=\"question-text\"><p>Which of these is not a Python built-in?<\/p><\/div>\n  <ul class=\"choices\">\n<li data-option=\"a\">anext<\/li>\n    <li data-option=\"b\">ascii<\/li>\n    <li data-option=\"c\">compile<\/li>\n    <li data-option=\"d\">reduce<\/li>\n  <\/ul>\n<p class=\"feedback\"><\/p>\n<\/div>\n<div class=\"quiz-question\" data-correct=\"b\">\n  <div class=\"question-text\"><p>What's the length of the Python list <code>[\"\"''', ,''', ','\" , \"]<\/code>?<\/p><\/div>\n\n  <div>\n<p><img alt=\"Image containing a snippet of code that contains the following code: \\[&quot;&quot;''', ,''', ','&quot; , &quot;\\]\" src=\"\/user\/pages\/02.blog\/python-quiz-pycon-italia-2025-edition\/_list.webp\"><\/p>\n<\/div>\n\n  <ul class=\"choices\">\n<li data-option=\"a\">1<\/li>\n    <li data-option=\"b\">2<\/li>\n    <li data-option=\"c\">3<\/li>\n    <li data-option=\"d\">That's an invalid list literal<\/li>\n  <\/ul>\n<p class=\"feedback\"><\/p>\n<\/div>\n<div class=\"quiz-question\" data-correct=\"d\">\n  <div class=\"question-text\"><p>The module <code>itertools<\/code> documents 20 objects, of which 19 are iterables. What's the name of the odd one out?<\/p><\/div>\n  <ul class=\"choices\">\n<li data-option=\"a\">compress<\/li>\n    <li data-option=\"b\">dropwhile<\/li>\n    <li data-option=\"c\">starmap<\/li>\n    <li data-option=\"d\">tee<\/li>\n  <\/ul>\n<p class=\"feedback\"><\/p>\n<\/div>\n<div class=\"quiz-question\" data-correct=\"a\">\n<div class=\"question-text\"><p>What's the output of running this code?<\/p><\/div>\n<div>\n<p><img alt=\"Image containing a snippet of code that contains the following code: x = 1234.5678; print(round(x, -2))\" src=\"\/user\/pages\/02.blog\/python-quiz-pycon-italia-2025-edition\/_round.webp\"><\/p>\n<\/div>\n<ul class=\"choices\">\n<li data-option=\"a\">1200.0<\/li>\n    <li data-option=\"b\">1234.56<\/li>\n    <li data-option=\"c\">1234.57<\/li>\n    <li data-option=\"d\">ValueError<\/li>\n  <\/ul>\n<\/div>\n<div class=\"quiz-question\" data-correct=\"a\">\n<div class=\"question-text\"><p>True or false? Python code is compiled before being interpreted...<\/p><\/div>\n<ul class=\"choices\">\n<li data-option=\"a\">True<\/li>\n    <li data-option=\"b\">False<\/li>\n  <\/ul>\n<\/div>\n<div class=\"quiz-question\" data-correct=\"a\">\n<div class=\"question-text\"><p>True or false? The Boolean type is a subclass of the integer type...<\/p><\/div>\n<ul class=\"choices\">\n<li data-option=\"a\">True<\/li>\n    <li data-option=\"b\">False<\/li>\n  <\/ul>\n<\/div>\n<div class=\"quiz-question\" data-correct=\"a\">\n<div class=\"question-text\"><p>True or false? All iterators are also iterables...<\/p><\/div>\n<ul class=\"choices\">\n<li data-option=\"a\">True<\/li>\n    <li data-option=\"b\">False<\/li>\n  <\/ul>\n<\/div>","summary":"Answer this quiz to test your knowledge about the Python language, community, andd the 2025 edition of PyCon Italy!","date_modified":"2025-07-23T16:49:02+02:00","tags":["python","quiz"],"image":"\/user\/pages\/02.blog\/python-quiz-pycon-italia-2025-edition\/thumbnail.webp"},{"title":"Who wants to be a millionaire?","date_published":"2025-05-27T17:15:00+02:00","id":"https:\/\/mathspp.com\/blog\/who-wants-to-be-a-millionaire","url":"https:\/\/mathspp.com\/blog\/who-wants-to-be-a-millionaire","content_html":"<p>Play this short Python quiz to test your Python knowledge!<\/p>\n\n<script src=\"\/user\/themes\/myquark\/js\/quiz.js\"><\/script>\n<link rel=\"stylesheet\" href=\"\/user\/themes\/myquark\/css\/quiz-custom.css\">\n<p>At EuroPython 2024 I did a lightning talk where I presented a \u201cWho wants to be a millionaire?\u201d Python quiz.\n<a href=\"https:\/\/www.youtube.com\/watch?v=6SckLDU_X6M\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">There was a whole performance going on during the lightning talk<\/a>, but the questions themselves were very interesting and I'm sharing them here so that you can test your Python knowledge!<\/p>\n<h2 id=\"question-1\">Question 1<a href=\"#question-1\" class=\"toc-anchor after\" data-anchor-icon=\"#\" aria-label=\"Anchor\"><\/a><\/h2>\n<p>This is an easy one to get you started.<\/p>\n<div class=\"quiz-question\" data-correct=\"a\">\n  <div class=\"question-text\"><p>What's the output of <code>print(\"Hello, world!\")<\/code>?<\/p><\/div>\n  <ul class=\"choices\"><li data-option=\"a\">Hello, world!<\/li>\n    <li data-option=\"b\">Hello world!<\/li>\n    <li data-option=\"c\">Hello world<\/li>\n    <li data-option=\"d\">Hello world!!<\/li>\n  <\/ul><p class=\"feedback\"><\/p>\n<\/div>\n<h2 id=\"question-2\">Question 2<a href=\"#question-2\" class=\"toc-anchor after\" data-anchor-icon=\"#\" aria-label=\"Anchor\"><\/a><\/h2>\n<div class=\"quiz-question\" data-correct=\"c\">\n  <div class=\"question-text\"><p>How many soft keywords does Python 3.13 have?<\/p><\/div>\n  <ul class=\"choices\"><li data-option=\"a\">0<\/li>\n    <li data-option=\"b\">2<\/li>\n    <li data-option=\"c\">4<\/li>\n    <li data-option=\"d\">8<\/li>\n  <\/ul><p class=\"feedback\"><\/p>\n<\/div>\n<h2 id=\"question-3\">Question 3<a href=\"#question-3\" class=\"toc-anchor after\" data-anchor-icon=\"#\" aria-label=\"Anchor\"><\/a><\/h2>\n<div class=\"quiz-question\" data-correct=\"a\">\n  <div class=\"question-text\"><p>How many times does the Python 3.13 glossary use the word \u201cdunder\u201d?<\/p><\/div>\n  <ul class=\"choices\"><li data-option=\"a\">0<\/li>\n    <li data-option=\"b\">2<\/li>\n    <li data-option=\"c\">15<\/li>\n    <li data-option=\"d\">42<\/li>\n  <\/ul><p class=\"feedback\"><\/p>\n<\/div>\n<h2 id=\"question-4\">Question 4<a href=\"#question-4\" class=\"toc-anchor after\" data-anchor-icon=\"#\" aria-label=\"Anchor\"><\/a><\/h2>\n<p>The final question is pretty much impossible unless you've been doing Python for quite a while...<\/p>\n<div class=\"quiz-question\" data-correct=\"d\">\n  <div class=\"question-text\"><p>What does the following Python 2 code output?<\/p><\/div>\n  <pre><code class=\"language-py hljs language-python\">print`3&lt;3`[~3]<\/code><\/pre>\n  <ul class=\"choices\"><li data-option=\"a\"><code>SyntaxError<\/code><\/li>\n    <li data-option=\"b\">42<\/li>\n    <li data-option=\"c\">3<\/li>\n    <li data-option=\"d\">a<\/li>\n  <\/ul><p class=\"feedback\"><\/p>\n<\/div>","summary":"Play this short Python quiz to test your Python knowledge!","date_modified":"2025-07-23T16:49:02+02:00","tags":["python","quiz"],"image":"\/user\/pages\/02.blog\/who-wants-to-be-a-millionaire\/thumbnail.webp"}]}
