← All tutorials

Skill Zuno · skillzunos.com · Fullstack

Python tutorial

Learn Python on Skill Zuno. This Python tutorial covers New, Easy, Medium, Hard, and Diff levels so you can study practical Python problems on skillzunos.com.

Open Python on Skill Zuno

Also see the Python interview questions.

Python is a high-level, dynamically typed language known for readable syntax and a large standard library. It is used for web back ends, scripting, automation, data science and machine learning. Python interviews test data structures, mutability, comprehensions, generators, decorators and the GIL.

Python topics covered

  • Lists, tuples, dicts and sets, and when to use each — Their performance characteristics, which are hashable, and picking the right one for lookups and ordering.
  • Mutable versus immutable objects and default argument pitfalls — How names refer to objects, why a default list is shared between calls, and how to avoid it.
  • List, dict and set comprehensions — Concise ways to build collections, and when a plain loop is easier to read.
  • Iterators, generators and yield — The iterator protocol, lazy evaluation with yield, and generator expressions for large data.
  • Decorators and functools.wraps — Wrapping functions to add logging, caching or checks, and keeping their name and docstring.
  • Context managers and the with statement — Guaranteed cleanup of files, locks and connections, and writing your own with contextlib.
  • Classes, dunder methods and dataclasses — __init__, __repr__, __eq__ and friends, and how dataclasses generate them for you.
  • The GIL, threading, multiprocessing and asyncio — Choosing the right concurrency model for I/O-bound and CPU-bound work.

What you can learn

  • Python tutorial for beginners and experienced developers
  • Level-based practice: New, Easy, Medium, Hard, and Diff
  • Fullstack topics alongside Python on skillzunos.com

More Fullstack tutorials

All tutorials