Skip to main content

Python Programming Basics

SheelonProgrammingComputer ScienceEnglishGrades 9-12Published Aug 5, 2026

print(), loops, lists, and a language named after a comedy show. Check your grasp of Python fundamentals with this beginner-friendly coding quiz.

12

questions

~6 min

to play

3

question types

Free

to host

Questions in this quiz

All 12 shown. Answers not revealed.

  1. Which function displays text on the screen in Python?

    Multiple Choice · 20s

    Aecho()
    Bwrite()
    Cshow()
    Dprint()
  2. Which of these is a valid Python variable name?

    Multiple Choice · 20s

    A2cool
    Bmy_score
    Cmy-score
    Dclass
  3. What does len("hello") return?

    Multiple Choice · 20s

    A4
    B6
    C0
    D5
  4. Python uses indentation (spaces at the start of a line) to group blocks of code.True / False · 20s
  5. Which keyword starts a loop that goes over each item in a list?Multiple Choice · 20s
  6. Which built-in function reads what the user types on the keyboard? (one word)Type Answer · 30s
  7. What data type is the value True in Python?Multiple Choice · 20s
  8. In Python, "3" + "4" gives "34" because both values are strings.True / False · 20s
  9. Which of these creates a list in Python?Multiple Choice · 20s
  10. What is the result of 2 ** 3 in Python?Multiple Choice · 20s
  11. Which keyword defines a new function in Python? (one word)Type Answer · 30s
  12. What is the Python language named after?Multiple Choice · 20s

Want to run this with your class?

Create a free account to host it live, assign it as homework, or copy it and change the questions.

Sign up free. No card needed.