Python Quiz Questions – Upskill yourself with Fun

Python course with 57 real-time projects - Learn Python

This Python quiz includes the basic and some intermediate level questions which will help you to memorize your concepts.

So, are you ready to attempt this quiz?

Also, do not forget to check other parts of the Python quiz as well.

All the Best!!!

This was all in the Python quiz. Hope you enjoyed answering it.

Do share your experience and score of the Python quiz in the comment section.

We work very hard to provide you quality material
Could you take 15 seconds and share your happy experience on Google

follow dataflair on YouTube

36 Responses

  1. Amar says:

    14 correct answer

  2. Gautam Kumar says:

    Q. 4 Ans will be 8 .It is showing Wrong
    Kindly check

    Thanks
    Gautam

  3. Marc says:

    Missing closing parenthesis in Q12

  4. Lokesh Yadav says:

    7 out of 15

  5. Pavan Kumar Korlakunta says:

    can anyone elaborate the 15th

  6. Vikas Gupta says:

    It’s very awful for me I was able to do give only 6 right answer

  7. sandeep kumar says:

    14 answers correct

  8. Laxminarayan says:

    a=7
    print (a+1)

    Correct ans is 8 ,but its showing me wrong,
    Kindly check all.

  9. CHANDANA SAMINENI says:

    14/15 are I scored

  10. Deepak Manglani says:

    8/15

  11. Deepa says:

    10 / 15 I scored

    can just explain que. 10 Ans.
    How it is 6

    • sahibson says:

      the code
      x,y,z = (1,2,3,4,5,6,7,8,9,10)[2::3]

      will take every third item starting from position 2 and put the first one in x, second in y and third in z
      That means,
      x=3 # First item from the starting position (second position)
      y=6 # Second item (Third from the first item)
      z =9 # Third item (Third from second item)

  12. Lakshmeesha Kadamannaya says:

    I scored 11/15

  13. Parminder Singh says:

    15 correct!!! yayyyyy i guess teaching well!! thank you lol

  14. saswati sinha says:

    14/15

  15. Diego Bejar says:

    13/15 xD

  16. Anshu sharaf says:

    7 out of 15, and I want to say it is a great platform for data science!!

  17. Kostiantyn Gurianov says:

    Q.2 anwers 2 and 3 will cause syntax error (Python 3.11.1):

    Cell In[1], line 1
    a={1, 2, \ #comment 3, 4}
    ^
    SyntaxError: unexpected character after line continuation character

    Cell In[25], line 1
    a={1, 2, #comment 3, 4}
    ^
    SyntaxError: incomplete input

    • DataFlair Team says:

      Thank you, Kostiantyn, for expressing interest in DataFlair.It’s possible that an indentation error occurs while copying the text. I request you to execute the code again and give it another try.

  18. Full Stack says:

    13 of 15 Questions answered correctly..

  19. Bhargav sai Yegireddi says:

    Thank you

Leave a Reply

Your email address will not be published. Required fields are marked *