8 cards59 people studying this

Python Essentials

Core Python concepts every developer should know — data types, control flow, functions, and common patterns.

Share on XWhatsApp
Study this deck for free

Free account includes unlimited cards, FSRS v6 scheduling, and AI card generation.
No credit card required.

Try it — tap the card
What is the difference between a list and a tuple in Python?
92% likely forgotten
Tap to see the answer
Lists are mutable (can be changed), tuples are immutable (cannot be changed after creation). Tuples use () and lists use [].
Tap to flip back
What does the "self" parameter refer to in Python class methods?
Last reviewed 12 days ago
Tap to see the answer
It refers to the current instance of the class. It allows access to instance attributes and other methods.
Tap to flip back
What is a list comprehension?
87% likely forgotten
Tap to see the answer
A concise way to create lists: [expression for item in iterable if condition]. Example: [x**2 for x in range(10) if x % 2 == 0]
Tap to flip back
What is the difference between == and "is" in Python?
Fading — due 5 days ago
Tap to see the answer
== checks value equality, "is" checks identity (same object in memory). Use "is" for None comparisons.
Tap to flip back
What are *args and **kwargs?
79% likely forgotten
Tap to see the answer
*args collects positional arguments into a tuple. **kwargs collects keyword arguments into a dictionary. Used for flexible function parameters.
Tap to flip back
What is a decorator in Python?
Last reviewed 21 days ago
Tap to see the answer
A function that wraps another function to extend its behavior. Defined with @decorator_name above a function definition.
Tap to flip back
What is the Global Interpreter Lock (GIL)?
94% likely forgotten
Tap to see the answer
A mutex in CPython that allows only one thread to execute Python bytecode at a time. It limits true parallelism for CPU-bound tasks.
Tap to flip back
What is a generator in Python?
Fading — due 9 days ago
Tap to see the answer
A function that uses "yield" instead of "return". It produces values lazily, one at a time, saving memory for large sequences.
Tap to flip back
Create your own AI flashcards

Create your own AI flashcards in 30 seconds — free

Get started for free

Want to track your progress with spaced repetition?

Sign up free to save this deck

Made with Forgetless — the AI flashcard app

Create your own deck in 30 seconds. Powered by the same algorithm as Anki.

Start free