Learn Python practically
and Get Certified.
Reference Materials
Created with over a decade of experience.
Certification Courses
Created with over a decade of experience and thousands of feedback.
Learn Python practically
and Get Certified.
Try Programiz PRO!
Learn Python practically
and Get Certified.
The best way to learn Python is by practicing examples. This page contains examples on basic concepts of Python. We encourage you to try these examples on your own before looking at the solution.
All the programs on this page are tested and should work on all platforms.
Want to learn Python by writing code yourself? Enroll in our Interactive Python Course for FREE.
Popular Examples
- Python Program to Check if a Number is Positive, Negative or 0
- Python Program to Check if a Number is Odd or Even
- Python Program to Check Leap Year
- Python Program to Find the Largest Among Three Numbers
- Python Program to Check Prime Number
- Python Program to Print all Prime Numbers in an Interval
- Python Program to Find the Factorial of a Number
- Python Program to Display the multiplication Table
- Python Program to Print the Fibonacci sequence
- Python Program to Check Armstrong Number
- Python Program to Find Armstrong Number in an Interval
- Python Program to Find the Sum of Natural Numbers
- Python Program to Create Pyramid Patterns
- Python Program to Iterate Over Dictionaries Using for Loop
- Python Program to Reverse a Number
- Python Program to Compute the Power of a Number