Exercises

Python Basics Quiz

Put your beginner Python knowledge to the test with this Python Basics Quiz. Explore essential programming concepts, including Python file extensions, defining functions, Boolean comparisons, creating lists, using len(), writing comments, mutable ordered collections, exponentiation, the pass statement, and if statements. Whether you are new to coding or reviewing foundational skills, this quiz helps you check your understanding of Python syntax and core language features.

Answer the questions below and check the explanation for each answer.

0/10 answered

  1. 1

    What is the correct file extension for Python files?

  2. 2

    Which keyword is used to create a function in Python?

  3. 3

    What is the output of 'print(3 == 3)' in Python?

  4. 4

    What's the correct way to create a list in Python?

  5. 5

    What does the 'len()' function in Python return?

  6. 6

    How do you start a comment in Python?

  7. 7

    Which collection type is ordered and changeable in Python?

  8. 8

    Which operator is used for exponentiation in Python?

  9. 9

    What does the 'pass' statement do in Python?

  10. 10

    How do you start an 'if' statement in Python?

Download the App now to have access to + 5000 free courses, exercises, certificates and lots of content without paying anything!

  • 100% free online courses from start to finish

    Thousands of online courses in video, ebooks and audiobooks.

  • More than 60 thousand free exercises

    To test your knowledge during online courses

  • Valid free Digital Certificate with QR Code

    Generated directly from your cell phone's photo gallery and sent to your email

Cursa app on the ebook screen, the video course screen and the course exercises screen, plus the course completion certificate