PYnative

Python Programming

  • Learn Python
    • Python Tutorials
    • Python Basics
    • Python Interview Q&As
  • Exercises
    • Python Exercises
    • C Programming Exercises
    • C++ Exercises
  • Quizzes
  • Code Editor
    • Online Python Code Editor
    • Online C Compiler
    • Online C++ Compiler
Home » Python » Quizzes » Basic Python Quiz For Beginners

Basic Python Quiz For Beginners

Updated on: September 3, 2025 | 150 Comments

This Quiz is for beginners who are new to Python Programming. This quiz provides Multiple Choice Questions(MCQs) to get familiar with Python. The quiz focuses on testing your basic skills in Python functions, string, operators, functions, set, and lists.

The quiz contains 25 Questions. Solve 15 correct to pass the test.

  • Read Python Basics to solve this quiz.
  • Solve Python MCQ Test
  • Also, Solve Python Basic Exercise for Beginners.
  • 15 Python Quizzes: each focusing on a specific topic

1. What is the output of the following code?

sampleList = ["Jon", "Kelly", "Jessa"]
sampleList.append(2, "Scott")
print(sampleList)
 
 
 
 

2. What is the output of the following code?

print("Python" + "Quiz")
 
 
 
 

3. Are the statements below true or false?

  • Strings are immutable in Python.
  • Every time we modify a string, Python always creates a new string and assigns it to that variable.
 
 

4. What is the output of print(bool(0))?

 
 
 
 

5. What is the purpose of the if __name__ == "__main__": block?

 
 
 
 

6. What is the output of the following code?

result = True and False
print(result)
 
 
 
 

7. What is the purpose of the pass statement in Python?

 
 
 
 

8. What is the output of the following code?

var1 = 1
var2 = 2
var3 = "3"

print(var1 + var2 + var3)
 
 
 
 

9. Which of the following data types is mutable in Python?

 
 
 
 

10. Which operator has higher precedence in the following list

 
 
 
 

11. What will be the output of print(3 * "Abc")?

 
 
 
 

12. Which of the following is NOT a valid variable name in Python?

 
 
 
 

13. What is the output of the following code?

listOne = [20, 40, 60, 80]
listTwo = [20, 40, 60, 80]

print(listOne == listTwo)
print(listOne is listTwo)
 
 
 

14. What is the output of the following code?

a = [1, 2, 3]
b = a
b.append(4)
print(a)
 
 
 
 

15. What will be the output of print('Python' * 2 + ' is fun')?

 
 
 
 

16. What is the output of the following code?

my_list = [1, 2, 3, 4]
print(my_list[2])
 
 
 
 

17. What is the output of the following code?

var= "James Bond"
print(var[2::-1])
 
 
 
 

18. What is the output of print(10 // 3)

 
 
 
 

19. What is the output of the following code?

valueOne = 5 ** 2
valueTwo = 5 ** 3

print(valueOne)
print(valueTwo)
 
 
 

20. What is the output of the following code?

def calculate (num1, num2=4):
  res = num1 * num2
  print(res)

calculate(5, 6)

Hint: functions in Python

 
 
 

21. What is the Output of the following code?

for x in range(0.5, 5.5, 0.5):
  print(x)
 
 
 

22. What is the output of the following code?

str = "pynative"
print (str[1:3])
 
 
 
 

23. What is the output of the following code

salary = 8000

def printSalary():
  salary = 12000
  print("Salary:", salary)
  
printSalary()
print("Salary:", salary)
 
 
 

24. What is the output of the following code?

p, q, r = 10, 20 ,30
print(p, q, r)
 
 
 

25. Can we use the “else” block for for loop?

for example:

for i in range(1, 5):
    print(i)
else:
    print("this is else block statement" )
 
 

Loading ... Loading …

Loading

深圳市网捷达科技有限公司 联系电话:18910898173;

ICP备案号:粤ICP备2024312167号-2

Copyright © 网捷达 版权所有

Did you find this page helpful? Let others know about it. Sharing helps me continue to create free Python resources.

TweetF  sharein  shareP  Pin

About Vishal

I’m Vishal Hule, the Founder of PYnative.com. As a Python developer, I enjoy assisting students, developers, and learners. Follow me on Twitter.

Related Tutorial Topics:

Python Python Basics Python Quizzes

All Coding Exercises:

C Exercises
C++ Exercises
Python Exercises

Python Exercises and Quizzes

Free coding exercises and quizzes cover Python basics, data structure, data analytics, and more.

  • 15+ Topic-specific Exercises and Quizzes
  • Each Exercise contains 25+ questions
  • Each Quiz contains 25 MCQ
Exercises
Quizzes

Comments

  1. Amit Kushwaha says

    March 12, 2026 at 10:44 am

    I scored 19 out of 25.

    Reply
  2. Athmiya Varshini Banda says

    May 19, 2025 at 9:31 am

    This was amazing and helpful for beginers

    Reply
    • atmiya says

      November 14, 2025 at 10:11 am

      this was very helpful yaeah,, cleared all my doubts regarding python

      Reply
    • athmiya says

      November 14, 2025 at 10:12 am

      this was very nice but it was easy and all basics

      Reply
  3. Athmiya Varshini Banda says

    May 19, 2025 at 9:30 am

    It was good

    Reply
  4. KSZ says

    December 1, 2024 at 6:09 am

    very good quiz questions! essential as hell!!

    Reply
  5. Bruhnana_G says

    July 14, 2024 at 3:00 am

    its my day 2 learning python and i got 9/18. Some questions here are lessons i havent encountered yet but im happy i got half

    Reply
    • SUDAMA PRAJAPATI says

      July 16, 2024 at 5:46 pm

      hi this is my first days i have completed Python Basic Quiz for Beginners.
      You scored 17 points out of 18 points in total.

      Reply
      • VISHAL GOBINATH says

        August 13, 2024 at 12:32 pm

        ITS NOT YOU IT WILL BECOME I BECAUSE YOU WILL BECOME SECOND PERSON PLURAL. I WILL BECOME 1ST PERSON SINGULAR I WILL COME THERE.

        Reply
      • Hello says

        October 3, 2024 at 12:35 pm

        It´s my first day learning Python and I scored 20 out of 18. Yeah!

        Reply
  6. Ibrar khan says

    February 19, 2024 at 11:39 pm

    Thank you so much sir its so improving test

    Reply
  7. Greg says

    January 30, 2024 at 9:17 pm

    I’m taking Python classes through CODEFINITY. They are completely lacking in any form of self evaluation or exercises. Looks like your site will help me fill in the gaps.. thanks

    Reply
  8. Karim says

    January 18, 2024 at 3:25 pm

    I toke the PY4E course by prof. Severance, which is a wonderfull course, but only thanks of this site I could be able to fully understand and practice the Python language and discover more.

    So, really thank you Vishal for all of this!

    Reply
  9. Klint says

    October 13, 2023 at 8:37 am

    Im electronic hardware engineer and i find these hard to answer which got me 10 out of 18..i want to learn programming, any advice?

    Reply
    • User89538 says

      December 11, 2023 at 11:52 pm

      Sure, here’s a translation:

      Hi there! It’s great that you’re interested in learning programming. As an electronic hardware engineer, it’s normal to find some programming questions challenging at first, but with practice and dedication, you can gain a solid understanding.

      Starting to learn programming might seem overwhelming, but I suggest starting with a language that aligns well with your goals. Depending on what you aim to achieve (embedded software development, automation, etc.), you might consider languages like Python, C, or even hardware-specific ones like Verilog or VHDL.

      There are many online platforms, tutorials, and free resources available to help you learn programming. Additionally, practicing by solving coding problems and challenges can be very beneficial in improving your skills.

      Don’t be discouraged by a few incorrect answers on an exam! Learning programming is an ongoing journey of discovery and practice. Keep going and best of luck with your learning!

      Reply
  10. apurva lagad says

    October 10, 2023 at 11:35 am

    heyyy i”m no good at python that much and i want to practice it just like a pro. will this help in my informatics practices preperation for 11th standard

    Reply
  11. Mahandry says

    September 29, 2023 at 8:42 pm

    Awesome website. I was just looking for an OOP courses and decided to take this quiz, I got 15/18. The feedback is very helpful. Let’s learn OOP now.

    Reply
  12. Basher says

    September 8, 2023 at 10:24 pm

    I suggest that you should rewrite the questions so that they follow Python naming conventions; all entities should be named in lowercase.

    Example the function printSalary() should be named as printsalary() or print_salary()

    But thank you for the helpful learning resource.

    Reply
  13. Unknown name says

    August 19, 2023 at 6:16 pm

    I scored 14/18

    Reply
    • rakesh says

      January 26, 2024 at 12:46 pm

      my score 17 out of 18

      Reply
  14. Priyanshi Maheshwari says

    July 27, 2023 at 8:52 pm

    my score was15/18

    Reply
    • Zeeshan Ansari says

      August 6, 2023 at 10:28 am

      Are you studying in BTech cs

      Reply
  15. jeeva says

    July 11, 2023 at 12:57 pm

    it is very useful

    Reply
    • rajesh says

      July 11, 2023 at 1:00 pm

      yeah bro

      Reply
  16. Rohan P says

    June 22, 2023 at 1:41 pm

    This was nice, I understand what I need to work on.
    Thanks for creating this website.

    Reply
  17. Salman Shaikh says

    March 9, 2023 at 3:20 pm

    Sorry Can you plzz explain Q2, Q6 , Q10

    Reply
    • Joel says

      March 29, 2023 at 12:31 pm

      It’ after the words
      Explanation

      Reply
    • Jeju says

      April 1, 2023 at 8:00 am

      For #10, the index starts at zero. So if it starts at 1 and we exclude (3), it would be yn.

      Reply
    • lakhan sharan says

      May 12, 2023 at 2:13 am

      Q2 so in this function we are simply multiplying two integar and printing the result but in case if the second value is not given then the default value would be 4 but in this case the value is given 6 so the default value wont be use and the answer would be ( 6 *5 = 30 ) but suppose the value of was’nt given then the default value 4 would be use and the answer would be ( 6 * 4 = 20 )

      hope that was helpful thanking you
      lakhan sharan

      Reply
      • lakhan sharan says

        May 12, 2023 at 2:19 am

        okay that was q6 not 2
        so for question no 2
        == means we are just comparing the value of different object
        whereas is operator means we are saying that both the object belongs to the same memory location
        since the variable are different so they will be given different memory locations
        for example
        a = 2
        b= 2
        so here we can say a ==b
        but not a is b since both the variable are different and they are given different memory locations

        Reply
        • Walker says

          December 3, 2023 at 11:57 pm

          Nope, the example you’ve given which is a = 2 b = 2. In that case both a == b and a is b will be true, since 2 is a constant and hence immutable, so python won’t create two different memory locations.

          Reply
  18. Salman Shaikh says

    March 9, 2023 at 3:15 pm

    can you plzz explain Q9.

    Reply
    • Zeeshan Ansari says

      August 6, 2023 at 10:25 am

      Yes ofcourse

      Var3 ek string hai aur var1 aur var2 integer hai aur in dono ko ek sath print karne ke liye inme se kisi ek ka type hame likhna hoga. tabhi ye print ho sakte hai.

      Reply
  19. Scott M says

    February 23, 2023 at 9:30 pm

    I’m still confused why the else passes in “8. Can we use the “else” block for for loop?”.

    I thought that if the for loop was successfull, it would break and not pass the else loop. I thought the else loop was for if the for loop failed?

    But it will successfully run the for loop AND print the else loop?

    Reply
    • Preston.L says

      May 18, 2023 at 6:24 pm

      Its just asking if you are allowed to add the else condition inside of a for statement, which is true, hence the answer. Confused me at first too!

      Reply
  20. Anusha Nayak says

    February 8, 2023 at 11:53 am

    Q8 please

    Reply
    • Murthu says

      February 18, 2023 at 8:53 pm

      str = "pynative"
      print (str[1:3])

      it is a slicing operation …
      syntax= str[start:stop:stepsize]

      in this program string name pynative so take one array order box and write indexing values after
      write indexing value 0 to start so in this program pynative y is a first character stop value is 3 so the
      character is ‘a’.. the final answer is ‘yna’

      Reply
      • amit says

        March 20, 2023 at 11:16 am

        you are wrong

        the final answer will be ‘yn’

        Reply
        • I will not tell you my name for no reason because you may be able to attack me mentally or even locate where my school is so I am not telling you my name for absulutely no reason. Why do you even have this. says

          January 5, 2024 at 3:20 am

          agree

          Reply
  21. favour says

    August 30, 2022 at 1:04 am

    Yes Sir, you did a very great job on this platform; The page is highly recommendable for learners and beginners who are learning or have learnt the basics of Python programming language but I have just one complaint. I’m sorry if this is a bit wrong to say but the comment made after a score is a bit discouraging. One of my co-learner did the quiz on her first go and got a 9 out of 18. The comment shown below it was(“Fail”) . Yes it was not a very good score but it felt a bit harsh and discouraging(so to say). I don’t know if I’m the only one who thinks that but maybe you should put a better comment. I don’t know. thank you

    Reply
    • Guru says

      September 30, 2022 at 2:12 pm

      Do better

      Reply
    • Zachary Muskath says

      December 30, 2022 at 2:31 am

      Yes, I felt the same way. I got 8 and it said ‘FAIL’ in big letters. Very discouraging and kind of hurtful as well, especially since I’ve spent hours trying to learn this and there was no positive feedback at all…

      Reply
    • Reality says

      January 9, 2023 at 1:10 am

      Was result supposed to say? YOU PASSED WITH FLYING COLORS!!!!! Congratulations!!!!
      If you failed you failed that is not the end, the way to success is paved with much failure and only those that persevere find success.
      Don’t be so sensitive, shake that dust off. I failed too, that tells me that I need to go and study and eventually I will get better.

      Reply
      • Vishal says

        January 18, 2023 at 10:24 am

        That is very well said.

        Reply
    • Jeju says

      April 1, 2023 at 8:03 am

      Try again! It’s not the end of the world, there’s room to improve. But still, that does seem a bit harsh. Maybe it could say, “Oops! You did not gain a passing score. Try again!” Your co-learner probably did her best, so to say, so they should not go into her flaws, but rather appreciate what she did right.
      <3–Jeju

      Reply
  22. hosana mitchell says

    August 10, 2022 at 9:45 pm

    this was very useful and fun!

    Reply
  23. Sunaina says

    August 4, 2022 at 3:51 pm

    Hi sir I want to prepare python coding job this is very helpful bt how to prepare interview I don’t that plzzz tel me sir

    Reply
  24. Prashant says

    July 27, 2022 at 12:13 pm

    I got 11 answers write and 7 wrong .
    but I am happy because I am a biggner in this field.
    Hey Vishal sir
    can you give some advice in these days because sir I am biggner .
    Please

    Reply
    • . says

      July 31, 2022 at 12:30 pm

      same

      Reply
    • Sumit Gupta says

      November 21, 2022 at 2:53 pm

      If you are a beginner then first try to study about theoretical part little bit not much more and then go with practical part.

      Secondly, create or write code everyday little bit harder than previous one.

      Reply
    • Jeju says

      April 1, 2023 at 8:04 am

      Yes, I am 11 too, and I got 16/18. Great job tho.

      Reply
  25. Danish jamal says

    July 19, 2022 at 12:05 pm

    Got 15 right and 3 wrong answer..
    But refreshed. Amazing website.

    Reply
  26. Bless says

    June 21, 2022 at 10:26 am

    I got 17/ 18 upon my trial though am a beginner

    Reply
    • Jeju says

      April 1, 2023 at 8:03 am

      I got 16/18.

      Reply
  27. mildred says

    June 12, 2022 at 11:59 pm

    Perfect for the self taught who are trying to learn coding without the benefit of quizzes, of which help me tremendously.

    Reply
  28. Arpan Karmakar says

    May 28, 2022 at 1:13 pm

    Please, anyone, explain to me problem no.16

    Reply
    • EnIge says

      June 6, 2022 at 10:58 pm

      in Python you can use the in operator to check if a value is in a list for example:

      list = ["apple" , "bannana" , "pear"]
      
      item = "apple"
      
      if  item  in list : 
          print("Item is found in  the list")
      else:
           print("Item not found in the list")
      Reply
    • Felix says

      June 21, 2022 at 7:34 pm

      var= "James Bond"
      print(var[2::-1])

      the command is defined as[start:end:increment]
      the index always starts with 0

      James Bond
      0123456789

      Starting from index 2 = letter “m” no endpoint is defined but will decrease by -1 so the next letter is index 1 then 0 which relates in this case to : maJ

      Reply
      • tommy says

        July 8, 2025 at 5:33 pm

        I got 24 out of 25

        Reply
    • Papacoding says

      July 1, 2022 at 4:39 pm

      listone = [313131]
      listtwo = [313131]
      listone == listtwo #listone can be equal to listtwo because they have the same values
      listone is listtwo # this tells us whether the objects are the same or not. In this case, they are not, because they have different names. Thus we get False in the second operation but True in the first one.

      Reply
    • shanawas says

      October 9, 2022 at 12:16 am

      print(str[startvalue:endvalue]) this is the syntax and the first index of pynative is y because index value always starts with 0 . The end value given is (index) 3 which is a and the last value must not be (included that is syntax) so the output is yn..

      Reply
  29. Hector says

    May 26, 2022 at 11:36 am

    I just completed my first run, I got an 8 score, this is an amazing test and learned a few new things after reading the correct answers

    Reply
    • Basavaraj says

      March 28, 2023 at 12:45 pm

      I completed my first exam and I got 8 marks out of 18

      Reply
  30. Ravi says

    May 11, 2022 at 5:32 pm

    Good

    Reply
    • Thiyagarajan says

      May 19, 2022 at 2:57 pm

      Great

      Reply
  31. Asror says

    April 28, 2022 at 12:17 am

    good well

    Reply
    • bob says

      April 28, 2022 at 5:12 pm

      agreed

      Reply
    • Shantesh says

      May 16, 2022 at 5:04 pm

      Good for skill development

      Reply
  32. Catherine says

    April 16, 2022 at 8:39 pm

    Fun quiz; it gives one a good idea of what is really fully understood and which subtleties need be reviewed to enhance the overall understanding.

    Reply
  33. Mohammed says

    February 25, 2022 at 8:27 pm

    thanks it’s q good refresh for information, also i found new one.

    Reply
  34. poe says

    February 17, 2022 at 4:00 pm

    thank you so much for this website and that too for free ! I GENUINELY APPRECIATE THIS MAN

    Reply
  35. GIo says

    February 2, 2022 at 6:31 am

    i love you thanks for another resource to help me learn !

    Reply
  36. Varuna says

    January 1, 2022 at 6:35 pm

    Really it’s benificial..

    Reply
  37. Vinod says

    December 31, 2021 at 9:06 am

    Thanks Vishal. Your explanation is very clear and understandable.
    You did an awesome job.

    Reply
  38. ramu says

    November 30, 2021 at 7:13 pm

    good job

    Reply
  39. Deepak Kumar says

    November 25, 2021 at 11:05 pm

    Hi
    I am not able to understand the Explanation of Q.no 2
    can any help me out.

    Reply
    • Poonam says

      January 2, 2022 at 4:22 pm

      Question 2

      str = "pynative"
      print (str[1:3])

      As the index get started from 0…the 1st indexed element is y and up to index 3..here we have to take value up to index 2 and 3 is our Boundary. so answer
      is “yn”

      Reply
      • Mohsin says

        April 1, 2022 at 5:40 pm

        Yes. You Are Right

        Reply
      • Suraj Thakor says

        March 2, 2023 at 12:15 pm

        yup

        Reply
    • Ritesh kumar says

      April 7, 2022 at 12:58 am

      it should be an integers number, at the place of integers

      Reply
  40. Nurul says

    September 24, 2021 at 5:53 pm

    As a complete beginner who just learned python for a few days, I find this quiz great. After submitting the answers, it doesn’t just give you the correct answers, but also the explanation behind the answers. It’s very informative for beginners. Thanks for the quiz! Btw I only got 6 right lol

    Reply
  41. vijaya says

    July 6, 2021 at 5:50 pm

    Thanks lot, its really superb idea to learn asap. liked it

    Reply
  42. GDog says

    July 5, 2021 at 9:10 pm

    being tested helps me learn and remember way better than reading stuff or watching hours of Udemy videos – thank you so much!!

    Reply
  43. Nagarjuna says

    June 3, 2021 at 3:46 pm

    It’s good

    Reply
  44. mahesh bandwan says

    April 21, 2021 at 8:26 pm

    you did very well for beginners and specially thanks

    Reply
  45. Foz says

    April 4, 2021 at 9:28 pm

    There’s an error on “Basic Python Quiz For Beginners” on Question 18, var1 and then in the print statement it isn’t spelt the same way, It’s a little bit misleading

    Reply
  46. Sagar says

    March 22, 2021 at 4:04 pm

    Share my details on mail

    Reply
    • Aggie Linnet says

      September 13, 2021 at 5:39 pm

      It’s great! Thank you.

      Reply
  47. Matthias says

    March 5, 2021 at 4:45 am

    18.) I assume

    print(var + var2 + var3) 
    should be 
    print(var1 + var2 + var3)
    Reply
    • Jim says

      September 7, 2021 at 1:25 am

      Doesn’t matter since the expression itself will fail with an error…

      Reply
  48. zee says

    February 18, 2021 at 1:10 am

    Hi. I really appreciate the help you do for beginners and if it’s ok can you please let me know the answer to this?

    “Write some Python code that defines a function called print_header(msg). This should output the value provided by the ‘msg’ parameter to the screen (prefixed by five asterisk ‘*****’) characters”

    Reply
    • sha9ow says

      November 18, 2021 at 8:52 pm

      def print_header(msg):
          print("*****",msg)
      
      
      msg=input("Enter msg: ")
      print_header(msg)
      Reply
      • anjali says

        June 20, 2023 at 12:12 pm

        def print_header(msg):
        print("*****",msg)
        msg=input("enter msg:")
        print_header(msg)

        Reply
  49. vivek says

    January 24, 2021 at 1:19 am

    thanks for creating this

    Reply
  50. Saif says

    January 16, 2021 at 9:29 pm

    I can no longer have access to the quizz answers though i tried on different PCs.
    I wonder why?

    Reply
    • Vishal says

      January 16, 2021 at 10:31 pm

      Hey Saif, The Issue is reloved now. Sorry for the inconvenience.

      Reply
  51. Somvanshi says

    December 23, 2020 at 12:30 am

    Q15 please explain

    Reply
    • Palash says

      August 16, 2021 at 10:11 am

      it will print “yn” as indexing start from 0 and [1:3] mean including 1 index and exclude 3 index so it will print 1 and 2 index value which is “yn”

      Reply
  52. DEMETRIUS LIOGKAS says

    December 5, 2020 at 10:13 pm

    Thank you,
    The lessons are very-very important and useful

    Reply
  53. Pradeep says

    November 12, 2020 at 3:56 pm

    Thank you sir

    Reply
  54. Alfred Ebimotimi Elayelagha says

    November 11, 2020 at 8:56 pm

    A wonderful and useful site for python basics!

    Reply
  55. Ambuja says

    November 4, 2020 at 12:25 pm

    It’s was good. Helpful to me to understand better. Thanks for this quiz

    Reply
  56. T Sai Harshitha says

    October 27, 2020 at 9:53 am

    Excellent job sir.
    This is very nice job we practised a lot and if possible keep more quiz’s with this you might help more learners.

    Reply
  57. Bobby Cass says

    October 8, 2020 at 6:47 am

    this doesnt even let you see your score or what your missed/got right

    Reply
  58. Michu says

    September 6, 2020 at 2:54 pm

    In question #17 I checked false, because the in operator checks for the value, not for the variable (whatever that means). I think the wording could be improved in that one.

    Reply
  59. Seymour says

    September 2, 2020 at 5:07 pm

    Just a couple of points. Question 13 – you have “var” instead of “var1” in the print line and so the error message is probably going to be that “var” is not defined, rather than the correct selection. Question 17 has exponentiation as the highest precedence. This does not agree with the python documentation https://docs.python.org/3/reference/expressions.html#id22 which would indicate that the comparison operator has the highest precedence.

    Reply
  60. Sumukh Sadananda says

    August 12, 2020 at 6:09 pm

    Thank you very much

    Reply
  61. Lionfire says

    August 7, 2020 at 7:38 pm

    Thank you for his quiz, it was very helpful!

    Reply
    • Vishal says

      August 10, 2020 at 1:12 pm

      You are welcome.

      Reply
  62. Aakarsh says

    August 6, 2020 at 12:04 am

    This is such a helpful website. It is totally user-oriented and it shows. Great work.

    Reply
    • Vishal says

      August 7, 2020 at 11:14 am

      Thank you, Aakarsh for your kind words.

      Reply
      • trupti says

        October 26, 2020 at 7:07 pm

        Hi! can you help me with coding?

        Reply
  63. Mangal says

    August 5, 2020 at 1:56 pm

    You are doing amazing. I really liked it.

    Reply
  64. Mayuri V. Charate says

    August 1, 2020 at 11:16 pm

    Thank you Vishal Sir.It really helpful for beginners.It me help the more about what is python .Thank u sir.

    Reply
  65. Dovran says

    July 29, 2020 at 11:25 pm

    Great resource. Thank you Vishal. Good work. Really helpful for beginners

    Reply
    • Vishal says

      August 1, 2020 at 10:19 am

      Thank you, Dovran

      Reply
  66. Abhiram Kanigolla says

    July 2, 2020 at 6:43 pm

    Thank you so much , It helps me to know more about the python

    Reply
    • Vishal says

      July 3, 2020 at 10:55 am

      You are welcome, Abhiram.

      Reply
  67. anonymous says

    June 14, 2020 at 2:10 pm

    In Question 11 the result of the first division is a float, hence the output is 182.0 rather than 182

    Reply
    • Vishal says

      June 15, 2020 at 5:02 pm

      Thank you for letting me know I have updated the question.

      Reply
      • mary says

        June 22, 2020 at 4:15 pm

        Question 17 has a problem,index -1 belongs to d yet the answer suggests that J has the index of -1

        Reply
        • Vishal says

          June 25, 2020 at 3:07 pm

          No. You can try by executing the code. the given answer is correct.

          Reply
    • Givantaro says

      August 5, 2020 at 3:09 am

      This is very useful for me as a beginner, thank you! ❤

      Reply
    • Pawan says

      October 19, 2020 at 1:49 am

      This question uses / operator which always gives you floating value.

      Reply
  68. Java,Python,c++ Expert says

    May 19, 2020 at 11:49 am

    I am gonna challenge u for googles code jam join me and lose hahahahah !

    Reply
  69. gurbaz says

    May 19, 2020 at 11:47 am

    I just scored 16 points and it failed me ??????

    Reply
    • Gurbaz Hunjan says

      May 19, 2020 at 11:50 am

      but it’s a good website indeed

      Reply
  70. Python Newbie says

    April 30, 2020 at 3:24 pm

    Thanks Vishal. This is a very useful page. Appreciate it.
    Keep up the good work !

    Reply
    • Vishal says

      April 30, 2020 at 5:37 pm

      Thank you

      Reply
  71. Marvis says

    April 26, 2020 at 1:31 pm

    Excellent Python quiz with concise explanations of the correct answers. A great learning tool

    Reply
    • Vishal says

      April 26, 2020 at 4:51 pm

      Thank you, Marvis.

      Reply
  72. Ryan says

    April 17, 2020 at 1:46 am

    Question number two had a semicolon. Unless I’m really missing something here that would have caused an error.

    Reply
    • Vishal says

      April 17, 2020 at 5:06 pm

      Hey Ryan, Thank you. I have updated a question

      Reply
  73. Just A Kid says

    April 13, 2020 at 9:06 pm

    This quiz was really helpful to me as I was thinking to learn advanced Python but I was not sure that I know the basics well. Also, can you suggest where should I learn advanced Python and is Python Django will be too advanced right after the basics?

    Reply
    • Vishal says

      April 15, 2020 at 12:27 am

      It depends on your work and interest. I suggest you practice data structure and then move as per your work need and interest.

      Reply
      • Just A Kid says

        April 19, 2020 at 1:25 pm

        Actually I don’t have any work needs because I’m still in school but thanks for the advice. 🙂

        Reply
  74. kavya maheshwari says

    March 20, 2020 at 6:13 pm

    one request,if you can add some code in that we have to find a error so that logic will develop.

    Reply
    • Vishal says

      March 20, 2020 at 6:50 pm

      Hey kavya Maheshwari, I will add that.

      Reply
      • Khriz says

        March 5, 2022 at 8:31 pm

        Can you help me

        Create a Python program (using any of the selection structures) that will accept distance in kilometer/s as input, and student or elderly passengers will pay the discounted rate, disabled passengers will get an additional 10% discount with the original discounted rate, otherwise the regular fare will be used as basis for the computation of fare. The output will be the total fare for the passenger.

        Reply
  75. Sean De Villiers says

    March 17, 2020 at 8:27 pm

    thank you for these tests they help a lot

    Reply
    • Vishal says

      March 19, 2020 at 11:40 am

      Thank you, Sean De Villiers

      Reply
  76. Md Golam Rabbani says

    March 8, 2020 at 10:36 pm

    Where are the answers to the above questions?

    Reply
    • Vishal says

      March 9, 2020 at 6:33 pm

      Sorry Md Golam Rabbani, There was CSS error. I have solved that. Now you can see the answers.

      Reply
      • Gokulavarshini says

        April 5, 2020 at 8:47 am

        I want answer sir plz

        Reply
        • Vishal says

          April 6, 2020 at 11:11 am

          Hi, After quiz submission, scroll the page to view the result and correct answers.

          Reply
          • ben hazelwood says

            November 14, 2025 at 7:54 pm

            thatnk you vishall i pooped myself just thinking about this

  77. Md Golam Rabbani says

    March 8, 2020 at 10:35 pm

    How can I see the answer to the above questions?

    Reply
  78. Susmita Cholkar says

    July 5, 2019 at 8:42 am

    Excellent job , I am a teacher and teach class XI and XII and as per the new syllabus of CBSE for computer science and IP we are teaching the same topics and your website is being very helpful. I also request you suggest some very good projects for these 17 year olds.

    Reply
    • P.yamini says

      July 24, 2020 at 2:55 pm

      Thank you sir,
      It will help me to test my self And learn more about basics

      Reply
    • bob says

      August 26, 2020 at 7:33 am

      very good teacher

      Reply

Leave a Reply Cancel reply

your email address will NOT be published. all comments are moderated according to our comment policy.

Use <pre> tag for posting code. E.g. <pre> Your entire code </pre>

In: Python Python Basics Python Quizzes
TweetF  sharein  shareP  Pin

  Python Quizzes

  • 15 Python Quizzes
  • Python Online MCQ Test
  • Basic Quiz For Beginners
  • Variables and Data Types Quiz
  • Functions Quiz
  • if else and loops Quiz
  • Numbers Quiz
  • String Quiz
  • List Quiz
  • Set Quiz
  • Dictionary Quiz
  • Tuple Quiz
  • Operators and Expression Quiz
  • Input and Output Quiz
  • Multithreading and Multiprocessing Quiz
  • File Handling Quiz
  • Random Data Generation Quiz

 Explore Python

  • Python Tutorials
  • Python Exercises
  • Python Quizzes
  • Python Interview Q&A
  • Python Programs

All Python Topics

Python Basics Python Exercises Python Quizzes Python Interview Python File Handling Python OOP Python Date and Time Python Random Python Regex Python Pandas Python Databases Python MySQL Python PostgreSQL Python SQLite Python JSON

About PYnative

PYnative.com is for Python lovers. Here, You can get Tutorials, Exercises, and Quizzes to practice and improve your Python skills.

Follow Us

To get New Python Tutorials, Exercises, and Quizzes

  • Twitter
  • Facebook
  • Sitemap

Explore Python

  • Learn Python
  • Python Basics
  • Python Databases
  • Python Exercises
  • Python Quizzes
  • Online Python Code Editor
  • Python Tricks

Coding Exercises

  • C Exercises
  • C++ Exercises
  • Python Exercises

Legal Stuff

  • About Us
  • Contact Us

We use cookies to improve your experience. While using PYnative, you agree to have read and accepted our:

  • Terms Of Use
  • Privacy Policy
  • Cookie Policy

Copyright © 2018–2026 pynative.com

深圳市网捷达科技有限公司 联系电话:18910898173;

ICP备案号:粤ICP备2024312167号-2

Copyright © 网捷达 版权所有