Python Basics Quiz: Can You Code the Fundamentals?

Check your Python fundamentals with this beginner-friendly quiz covering syntax, variables, loops, functions, data types, and essential programming logic.

Feb 4, 2026 - 12:23
 0  5k

1. Who created the "Python" programming language?

Guido Van Rossum
Dennis Ritchie
James Gosling
Bjarne Stroustrup

2. Which keyword is used to define a function in Python?

func
define
def
lambda

3. Which data type stores ordered, changeable data in python?

Tuple
List
Set
Dictionary

4. Which symbol is used to start a comment in Python?

//
/*
#
--

5. Which file extension is used for Python scripts?

.java
.exe
.cpp
.py

What's Your Reaction?

Like Like 1
Dislike Dislike 0
Love Love 0
Funny Funny 0
Angry Angry 0
Sad Sad 0
Wow Wow 0
ANAND SWAMI Anand Swami is a Senior Content Manager and quiz content writer with 7+ years of writing quizzes, blogs, and articles that have driven over 150 million organic visits. From General Knowledge, history, science, and technology to business, personality, lifestyle, and travel, he has covered it all and built genuine audience engagement along the way. Outside of work, Anand is a certified tabla player and a TKFI karate player, two disciplines that keep him sharp, focused, and creative.