This repository contains a simple Python learning script in main.py with 10 basic programs. Each example is written with clear comments and runs from a single file for easy study and experimentation.
- Hello World - prints a welcome message.
- Add Two Numbers - adds two integers and prints the result.
- Check Even or Odd - tests whether a number is even or odd.
- Factorial of a Number - computes the factorial of a number using a function.
- Multiplication Table - prints the multiplication table for a selected value.
- Check Prime Number - determines whether a number is prime.
- Reverse a String - reverses and prints a string.
- Fibonacci Series - generates Fibonacci numbers up to a limit.
- Find Maximum in a List - finds the largest value in a list.
- Simple Calculator - performs a basic arithmetic operation between two numbers.
- Open a terminal in the project folder.
- Run:
python main.py- This project is designed for beginners learning Python syntax, functions, conditionals, loops, and printing.
- Feel free to modify the values and functions in
main.pyto explore how the examples work.