Skip to content

TypingDad logoTypingDadFree

Practice that's friendly and fast

🐍 Python Programs

105 Essential Programs from Beginner to Advanced

Your Progress

0/105Total
0/35Beginner
0/35Intermediate
0/35Advanced
105Total Programs
35Beginner
35Intermediate
35Advanced
23Categories

Filter by Category

Filter by Level

105 programs shown
🟢

Hello World

#1

Print Hello World

BeginnerBasics
🟢

Print Name

#2

Print user name

BeginnerBasics
🟢

Add Two Numbers

#3

Add two numbers

BeginnerBasics
🟢

Swap Numbers

#4

Swap two variables

BeginnerBasics
🔵

Largest of Two

#5

Find largest of two numbers

BeginnerConditions
🔵

Even or Odd

#6

Check even or odd

BeginnerConditions
🔄

Factorial

#7

Find factorial of number

BeginnerLoops
🔄

Fibonacci

#8

Print Fibonacci series

BeginnerLoops
🧠

Reverse Number

#9

Reverse digits of number

BeginnerLogic
🧠

Prime Check

#10

Check if number is prime

BeginnerLogic
📝

Palindrome String

#11

Check palindrome string

BeginnerStrings
📊

Largest in List

#12

Find largest element

BeginnerLists
📊

Remove Duplicates

#13

Remove duplicates from list

BeginnerLists
📝

Count Vowels

#14

Count vowels in string

BeginnerStrings
🧠

Sum of Digits

#15

Sum digits of a number

BeginnerLogic
🧠

GCD

#16

Find GCD of two numbers

BeginnerLogic
🧠

Power

#17

Power of a number

BeginnerLogic
🧠

Leap Year

#18

Check if year is leap year

BeginnerLogic
📝

Character Frequency

#19

Count character frequency

BeginnerStrings
🧠

Print Primes to N

#20

Print primes up to N

BeginnerLogic
🧠

Armstrong Number

#21

Check Armstrong number

BeginnerLogic
🧠

Palindrome Number

#22

Check palindrome number

BeginnerLogic
🧠

Count Digits

#23

Count digits in number

BeginnerLogic
🔄

Print 1 to N

#24

Print numbers from 1 to N

BeginnerLoops
🔄

Even Numbers 1-10

#25

Print even numbers

BeginnerLoops
🔄

Sum of First N

#26

Sum of first N numbers

BeginnerLoops
🔄

Multiplication Table

#27

Print multiplication table

BeginnerLoops
🔵

Largest of Three

#28

Find largest of three numbers

BeginnerConditions
🔵

Positive or Negative

#29

Check positive or negative

BeginnerConditions
📝

Reverse String

#30

Reverse a string

BeginnerStrings
📊

Sort List Ascending

#31

Sort list in ascending order

BeginnerLists
🧠

Find LCM

#32

Find LCM of two numbers

BeginnerLogic
📊

Second Largest

#33

Find second largest element

BeginnerLists
🟢

Simple Calculator

#34

Perform basic arithmetic

BeginnerBasics
📝

String Upper/Lower

#35

Convert string case

BeginnerStrings
🟡

Lambda Function

#36

Use lambda expressions

IntermediateFunctions
🟡

Map & Filter

#37

Use map and filter

IntermediateFunctions
🟡

List Comprehension

#38

Build lists concisely

IntermediateFunctions
📦

Dictionary Ops

#39

Common dictionary operations

IntermediateData Structures
🟡

Default Args

#40

Functions with default arguments

IntermediateFunctions
🟡

*args & **kwargs

#41

Variable length arguments

IntermediateFunctions
🟡

Recursion

#42

Recursive function example

IntermediateFunctions
🔤

Anagram Check

#43

Check if two strings are anagrams

IntermediateStrings & Logic
🔤

Word Frequency

#44

Count word frequency

IntermediateStrings & Logic
🔤

Find Non-Repeating

#45

First unique character

IntermediateStrings & Logic
🔤

String Compression

#46

Compress repeating characters

IntermediateStrings & Logic
🔤

Reverse Words

#47

Reverse words in sentence

IntermediateStrings & Logic
📦

Flatten List

#48

Flatten nested list

IntermediateData Structures
📦

Merge Dicts

#49

Merge two dictionaries

IntermediateData Structures
📦

Stack with List

#50

Stack using Python list

IntermediateData Structures
📦

Queue with deque

#51

Queue using collections.deque

IntermediateData Structures
📦

Set Operations

#52

Union, intersection, difference

IntermediateData Structures
🟡

Enumerate

#53

Loop with index using enumerate

IntermediateFunctions
🟡

Zip & Unzip

#54

Zip two lists together

IntermediateFunctions
🟡

Generator Function

#55

Lazy sequence with yield

IntermediateFunctions
🟡

Decorator Basics

#56

Function decorator pattern

IntermediateFunctions
🏗️

Context Manager

#57

Custom context manager with class

IntermediateOOP
🏗️

Class Basics

#58

Define and use a class

IntermediateOOP
🏗️

Inheritance

#59

Class inheritance example

IntermediateOOP
🏗️

Static Method

#60

Static method inside class

IntermediateOOP
🏗️

Property Decorator

#61

Getter / setter with property

IntermediateOOP
🛡️

Try / Except

#62

Handle exceptions

IntermediateError Handling
📁

File Write & Read

#63

Write then read a file

IntermediateFile I/O
📁

CSV Reader

#64

Read CSV with csv module

IntermediateFile I/O
📁

JSON Encode/Decode

#65

Serialize and deserialize JSON

IntermediateFile I/O
🔤

Regular Expression

#66

Pattern matching with re

IntermediateStrings & Logic
🔧

datetime Module

#67

Work with dates and times

IntermediateModules
🔧

Random Module

#68

Generate random numbers

IntermediateModules
🔧

OS Module

#69

File system with os module

IntermediateModules
🟡

Sorted with Key

#70

Custom sort using key function

IntermediateFunctions
🧮

Binary Search

#71

Binary search on sorted list

AdvancedDSA
🧮

Quick Sort

#72

Quick sort implementation

AdvancedDSA
🧮

Merge Sort

#73

Merge sort implementation

AdvancedDSA
🧮

Linked List

#74

Singly linked list in Python

AdvancedDSA
🧮

Stack Class

#75

Stack using a class

AdvancedDSA
🧮

Tree BFS

#76

Breadth-first traversal

AdvancedDSA
🧮

Graph DFS

#77

Depth-first search on graph

AdvancedDSA
🚀

Memoization

#78

Cache results with functools

AdvancedPerformance
🏛️

Singleton Pattern

#79

Singleton using class

AdvancedArchitecture
🏛️

Observer Pattern

#80

Event observer implementation

AdvancedArchitecture
🏗️

Iterator Protocol

#81

Custom iterator class

AdvancedOOP
🏗️

Context Manager w/ yield

#82

contextlib contextmanager

AdvancedOOP
🏗️

DataClass

#83

Python dataclass decorator

AdvancedOOP
🏗️

Abstract Class

#84

Abstract method with ABC

AdvancedOOP

Thread Basics

#85

Threading module usage

AdvancedConcurrency

asyncio Basics

#86

Async / await with asyncio

AdvancedConcurrency

Multiprocessing

#87

Process pool example

AdvancedConcurrency

Type Hints

#88

Python type annotations

AdvancedBest Practices

Walrus Operator

#89

Assignment expression :=

AdvancedBest Practices

Structural Matching

#90

match / case statement (3.10+)

AdvancedBest Practices
🚀

Slots Optimization

#91

Memory saving with __slots__

AdvancedPerformance
🚀

Profiling with cProfile

#92

Profile performance

AdvancedPerformance
🗄️

SQLite Integration

#93

SQLite database with sqlite3

AdvancedDatabase
🌐

Requests HTTP

#94

HTTP GET with requests library

AdvancedWeb
🌐

FastAPI Hello

#95

Minimal FastAPI app

AdvancedWeb
📈

Pandas DataFrame

#96

Create and inspect a DataFrame

AdvancedData Science
📈

NumPy Array

#97

Create and operate NumPy array

AdvancedData Science
📈

Matplotlib Plot

#98

Simple line chart

AdvancedData Science
📈

Scikit-learn Model

#99

Train a classifier

AdvancedData Science
🧪

Unit Testing

#100

unittest test case

AdvancedTesting
🧪

Mock in Tests

#101

Mock functions with unittest.mock

AdvancedTesting

Logging Module

#102

Log messages at different levels

AdvancedBest Practices

Pathlib

#103

Modern path handling

AdvancedBest Practices

Enum Class

#104

Define an enumeration

AdvancedBest Practices
🏛️

Metaprogramming

#105

Metaclass basics

AdvancedArchitecture

Your Python Journey

Track your progress through Python fundamentals and advanced concepts

🟢
0/35
Beginner Completed
🚀
0/35
Intermediate Completed
🔴
0/35
Advanced Completed
📊
0/105
Total Completed