Skip to content

rajs-portfolio/Python_Basics

Repository files navigation

Python Basics and Mini Games

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.


📂 Programs Included

🔎 Algorithms

  • 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.

🔁 Recursion

  • factorial_recursion.py — Calculate factorial of a number using recursion.
  • recursion.py — Explore basic recursion examples.

🔢 Number-related Programs

  • prime_number.py — Check if a number is prime.

📋 Menu-Driven Programs

  • menu_driven.py — A simple menu-driven application.
  • menu_driven1.py — Another variation of menu-driven programs with different operations.

🎮 Games

  • guessing_game.py — A basic number guessing game.
  • snake_game.py — A simple Snake Game made using Python.

🖥️ Basics

  • hello_world.py — First Python program (Hello World).

🚀 How to Run

Make sure you have Python installed on your system.
You can run any program using the terminal or command prompt:

python filename.py

About

Basic Python practice codes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages