Skip to content

GayatriParimiDev/Python-Programs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Python Programs Collection

Python Django Git GitHub VS Code

๐Ÿ“‹ Overview

A comprehensive collection of Python programs covering various topics from my programming curriculum. This repository contains programs ranging from basic concepts to advanced applications including a full Django web application.

๐Ÿ—‚๏ธ Repository Structure

๐Ÿ“ IInd_unit/

Unit 2 programming exercises and academic programs

  • academic.py - CGPA calculation system
  • matrix.py - Matrix operations
  • u2_p1.py to u2_p15.py - Various programming problems

๐Ÿ“ OOP/

Object-Oriented Programming examples

  • p1.py - Shape classes (Circle, etc.) with inheritance
  • p2.py - OOP concepts demonstration
  • p3.py - Advanced OOP examples

๐Ÿ“ pro/

Programming problems and utilities

  • fibonacci(p9).py - Fibonacci sequence generator
  • birthday(p12).py - Birthday calculator
  • blood_group(p5).py - Blood group analyzer
  • cards(p1).py - Card game simulations
  • collatz_sequence(p10).py - Collatz conjecture implementation
  • Exact_change(p13).py - Change calculation algorithm
  • student_marks(p8).py - Student grade management
  • stringmanipulation(p4).py - String processing utilities
  • And many more programming exercises...

๐Ÿ“ python_program_list/

Comprehensive list of Python programs (p1.py through p20.py)

  • Basic to advanced Python programming concepts
  • Algorithm implementations
  • Data structure examples

๐Ÿ“ taskmanager/

Django Web Application - Task Management System

  • Full-stack Django project with SQLite database
  • Features: Add, update, delete, and view tasks
  • Templates for user interface
  • RESTful API endpoints

๐Ÿ“ python unit 2/

Additional Unit 2 programming exercises

  • Numbered programs (1.py through 15.py)
  • File operations and data processing

๐Ÿ“ unit 1 & 2 extra/

Extended collection of programs from Units 1 and 2

  • 24 comprehensive programs
  • Advanced concepts and algorithms

๐Ÿš€ Tech Stack

Python Django SQLite HTML5 CSS3 JavaScript Bootstrap

๐Ÿ“ฆ Installation & Setup

Prerequisites

  • Python 3.8 or higher
  • Git
  • Virtual environment (recommended)

Clone the Repository

git clone https://github.com/GayatriParimiDev/Python-Programs.git
cd Python-Programs

Django Task Manager Setup

cd taskmanager

# Create virtual environment
python -m venv venv

# Activate virtual environment
# On Windows:
venv\Scripts\activate
# On macOS/Linux:
# source venv/bin/activate

# Install Django
pip install django

# Run migrations
python manage.py migrate

# Start development server
python manage.py runserver

Visit http://127.0.0.1:8000/ to access the task manager application.

๐ŸŽฏ Program Categories

๐Ÿ”ข Mathematical Programs

  • Fibonacci sequences
  • Matrix operations
  • CGPA calculations
  • Collatz conjecture
  • Exact change algorithms

๐ŸŽฎ Game & Simulation

  • Card games
  • Number guessing games
  • Text-based adventures

๐Ÿ“Š Data Processing

  • Student marks management
  • File I/O operations
  • JSON data handling
  • Text processing utilities

๐Ÿ—๏ธ Object-Oriented Programming

  • Shape hierarchies
  • Inheritance examples
  • Polymorphism demonstrations
  • Class design patterns

๐ŸŒ Web Development

  • Django task management system
  • CRUD operations
  • Template rendering
  • Database interactions

๐Ÿ“– Usage Examples

Running Individual Programs

# Navigate to specific folder
cd pro

# Run a program (example: Fibonacci)
python fibonacci(p9).py

Academic CGPA Calculator

from IInd_unit.academic import add_course, calculate_cgpa

# Add courses with credits and grade points
add_course("Mathematics", 4, 9.5)
add_course("Physics", 3, 8.0)
add_course("Computer Science", 4, 9.0)

# Calculate CGPA
cgpa = calculate_cgpa()
print(f"Your CGPA is: {cgpa:.2f}")

Shape Area Calculator (OOP)

from OOP.p1 import Circle

# Create a circle object
circle = Circle(5)
print(f"Area: {circle.area():.2f}")
print(f"Perimeter: {circle.perimeter():.2f}")

๐Ÿค Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

๐Ÿ“ Program Documentation

Each program includes comments explaining:

  • Purpose and functionality
  • Input requirements
  • Output format
  • Algorithm used (where applicable)

๐Ÿ† Learning Outcomes

This collection demonstrates:

  • โœ… Basic Python syntax and data types
  • โœ… Control structures (loops, conditionals)
  • โœ… Functions and modules
  • โœ… File I/O operations
  • โœ… Object-oriented programming
  • โœ… Data structures and algorithms
  • โœ… Web development with Django
  • โœ… Database interactions
  • โœ… Error handling and validation

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ“ž Contact

Gayatri Parimi


โญ Star this repository if you found it helpful!

Built with โค๏ธ using Python

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors