#1 India's Top IT Training Institute

×

About Uncodemy

Know more about who we are and what we stand for.

About Us

About Us

Discover our mission to equip individuals with essential IT skills and industry expertise.

Read More →
UnCodeMy Gallery

UnCodeMy Gallery

Explore highlights from our IT training sessions and success stories.

Read More →
×

Free Resources

Learn, practice and plan your career — bilkul free.

Tutorials

Tutorials

Step-by-step written tutorials to learn any technology at your own pace.

Read More →
Free Counselling

Free Counselling

Book a free video counselling session and pick the right course for you.

Read More →
Online Compiler

Online Compiler

Write, run and test your code online — no setup required.

Read More →
🐍 FREE · 24 CARDS

Python Interview Flashcards: 24 Cards You Should Know Cold

Quick-fire Python questions with crisp answers. Mark what you know and keep revising the rest.

  • 🃏 Flip and self-grade
  • 🧠 Concepts, not trivia
  • 📥 Revision download

How to use the Python Interview Flashcards

  1. 1. Choose topicsPick one topic or all of them, a round size, and whether to skip cards you already know.
  2. 2. Flip and gradeRead the question, answer aloud, then reveal the answer and mark it known or still learning.
  3. 3. Review your resultsMissed cards come back later in the round. At the end see your score by topic and download the cards to revise.

What the deck covers

The deck focuses on the Python concepts interviewers use to separate people who have read about Python from people who have written it. The 24 cards are grouped into 12 topics: Basics, Data structures, Comprehensions, Functions, Generators, OOP, Memory, Concurrency, Errors, Modules, Strings, Libraries. Answers are short on purpose: one or two sentences you can say out loud, which you then back up with an example from your own projects.

A card from the deck

Q: What does a mutable default argument cause?

A: Defaults are evaluated once, when the function is defined. def f(x=[]) shares the same list across calls, so items pile up. Use None and create the list inside.

The mutable default argument is a classic trick question. The fix, using None as the default and creating the list inside the function, is what the interviewer wants to hear.

How to study with it

  • Type out the code examples (like the list comprehension card) in a Python shell to be sure.
  • For the GIL card, be ready to say when you'd choose threads, processes or asyncio.
  • In the Python deck, cards you mark "still learning" come back three cards later in the same round, and the results screen lists them so you can download a revision sheet.

More questions from this deck

Other Python questions you'll meet include:

  • What are Python's mutable and immutable types?
  • How is a dictionary implemented?
  • What is a decorator?
  • What is self?
  • How does Python manage memory?

Frequently asked questions

Which Python version?

Python 3.10 and later. Behaviour like dictionaries keeping insertion order applies from 3.7.

Are there coding questions?

A few cards ask for one-liners. For full problems, use the Python practice problems tool.

Are the Python interview flashcards free?

Yes. You can flip through every card of the Python interview flashcards without signing up. When you open your results for the first time, we ask once for your name and WhatsApp number; after that the Python interview flashcards and every other Uncodemy tool open straight away.

More free tools

See all free tools