🐍 Python Basics and Mini Games
A collection of basic Python programs and mini games created as part of my Python learning journey.
This repository contains programs based on fundamental concepts such as searching algorithms, recursion, number operations, menu-driven applications, and simple games.
📂 Programs Included
🔎 Algorithms
- "binary_search.py" — Performs binary search on a sorted list.
- "linear_search.py" — Performs linear search on a list.
- "gcd.py" — Finds the Greatest Common Divisor (GCD) of two numbers using recursion.
🔁 Recursion
- "factorial_recursion.py" — Calculates the factorial of a number using recursion.
- "recursion.py" — Contains basic examples to understand recursion.
🔢 Number Programs
- "prime_number.py" — Checks whether a given number is prime.
📋 Menu-Driven Programs
- "menu_driven.py" — A simple menu-driven Python program.
- "menu_driven1.py" — Another menu-driven program demonstrating different operations.
🎮 Mini Games
- "guessing_game.py" — A simple number guessing game.
- "snake_game.py" — A basic Snake Game developed using Python.
🖥️ Python Basics
- "hello_world.py" — A simple Hello World program and introduction to Python syntax.
🧠 Concepts Practiced
This repository covers several important Python fundamentals:
- Variables and data types
- Input and output
- Conditional statements
- Loops
- Functions
- Recursion
- Lists
- Searching algorithms
- Number-based problems
- Menu-driven programming
- Basic game development
- Problem-solving and logical thinking
🚀 How to Run
Make sure Python 3 is installed on your system.
Check your Python installation:
python --version
On some Linux systems, use:
python3 --version
Run a Program
Clone the repository:
git clone
Navigate to the project directory:
cd
Run any Python file:
python filename.py
For example:
python hello_world.py
Or on Linux:
python3 hello_world.py
🎮 Mini Games
This repository includes simple games created while learning Python:
🎯 Guessing Game
A basic game where the player tries to guess a randomly selected number.
🐍 Snake Game
A simple implementation of the classic Snake Game using Python.
📈 Learning Journey
These programs represent my progress while learning Python, starting from basic syntax and gradually moving toward algorithms, recursion, and interactive programs.
More programs and projects will be added as I continue learning and improving my Python skills.
🔮 Future Improvements
- Add more Python programs
- Practice Object-Oriented Programming
- Add Data Structures and Algorithms
- Build more mini games
- Explore Python libraries
- Create larger Python projects
👨💻 Author
Raj Sharma
BCA Student | Learning Python, DSA & Software Development
⭐ If you find this repository useful, consider giving it a star!