This repository contains basic Python programs and small game projects created as part of my learning journey.
The programs cover a variety of fundamental programming concepts such as searching algorithms, recursion, number theory, and interactive menu-driven programs.
binary_search.py— Perform binary search on a sorted list.linear_search.py— Perform linear search on a list.gcd.py— Find the Greatest Common Divisor (GCD) of two numbers using recursion.
factorial_recursion.py— Calculate factorial of a number using recursion.recursion.py— Explore basic recursion examples.
prime_number.py— Check if a number is prime.
menu_driven.py— A simple menu-driven application.menu_driven1.py— Another variation of menu-driven programs with different operations.
guessing_game.py— A basic number guessing game.snake_game.py— A simple Snake Game made using Python.
hello_world.py— First Python program (Hello World).
Make sure you have Python installed on your system.
You can run any program using the terminal or command prompt:
python filename.py