Skip to content

A collection of python program made for my school course

Notifications You must be signed in to change notification settings

franciuto/Python4School

Repository files navigation

Python4School 🐍

A comprehensive collection of Python exercises organized by topic and difficulty level. Perfect for learning Python from basics to advanced concepts.

📂 Repository Structure

01-fundamentals-basics

Introduction to Python programming fundamentals.

  • 01 - Basic IO.py - Input and output operations
  • 02 - Sum numbers.py - Basic arithmetic operations
  • 04 - Variables.py - Variable declaration and usage
  • 06 - Swap variables.py - Variable swapping techniques

02-mathematics

Mathematical operations and calculations.

  • 03 - Triangle area.py - Calculate triangle area
  • 05 - Division.py - Division operations
  • 07 - Birthday calculator.py - Date calculations
  • 09 - Perfect square.py - Perfect square checker

03-strings

String manipulation and algorithms.

  • 13 - Palindrome strings.py - Check if string is palindrome
  • 14 - String concatenation.py - String joining operations
  • 15 - Simple ROT.py - Basic ROT cipher (Caesar cipher)
  • 15a - Complete ROT.py - Advanced ROT cipher implementation
  • 16 - String merge.py - Merge multiple strings

04-random-and-lists

Working with random numbers and list operations.

  • 10 - Heads or tails.py - Coin flip simulation
  • 11 - Average of random numbers in list.py - Calculate average of random numbers

05-mini-projects

Small practical projects combining multiple concepts.

  • 08 - Basic Calc.py - Simple calculator with basic operations
  • 12 - Password generator.py - Random password generator
  • 17 - The Love Game.py - Fun love compatibility calculator

06-file-io

File input/output operations.

  • 22 - Reverse file lines/ - Read and reverse file contents

07-data-analysis

Data processing and analysis exercises.

  • 23 - Student grades analysis/ - Analyze student grades data

08-games

Complete game projects with complex logic.

  • 18 - Hangman/ - Classic word guessing game
  • 19 - Black Jack/ - Card game implementation
  • 20 - Higher Lower/ - Number guessing game
  • 21 - Coffee Machine/ - Coffee machine simulator

09-turtle-graphics

Graphics programming with Python Turtle.

  • 24 - Draw a house.py - Draw geometric shapes
  • 25 - Spiral.py - Create spiral patterns
  • 26 - Random squares.py - Generate random square patterns
  • 27 - Point wall.py - Interactive point-based drawing
  • 28 - Turtle race.py - Turtle racing animation
  • 29 - Turtle race questions.py - Interactive quiz-based turtle race

🚀 Getting Started

Prerequisites

  • Python 3.x installed
  • For Turtle graphics: Tkinter (usually included with Python)

Running the Exercises

# Navigate to the desired category
cd 01-fundamentals-basics

# Run any exercise
python3 "01 - Basic IO.py"

📚 Learning Path

Recommended order for beginners:

  1. Start with 01-fundamentals-basics
  2. Progress to 02-mathematics
  3. Learn string manipulation in 03-strings
  4. Explore randomness in 04-random-and-lists
  5. Build confidence with 05-mini-projects
  6. Master file operations in 06-file-io
  7. Analyze data in 07-data-analysis
  8. Challenge yourself with 08-games
  9. Have fun with 09-turtle-graphics

🎯 Exercise Difficulty

  • Beginner: Categories 1-4
  • Intermediate: Categories 5-7
  • Advanced: Categories 8-9

📝 Notes

  • All exercises include comments explaining the logic
  • Some exercises use external files (check subdirectories)
  • Games may require additional modules or data files

🤝 Contributing

Feel free to add new exercises or improve existing ones following the established structure.

📄 License

Educational purposes - Free to use and modify.


Happy Coding! 💻✨

About

A collection of python program made for my school course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages