Skip to content

TheOneBestAgent/Learning-to-code-python.-

Repository files navigation

Python Learning Journey

Welcome to my Python learning repository! This collection of programs represents the beginning of my programming journey, demonstrating fundamental concepts through practical examples and a comprehensive mini-project.

Learning Overview

This repository contains 10 Python programs that build progressively from basic syntax to advanced concepts:

  • Day 1: Introduction to basic syntax and user interaction
  • Day 2: Completing all foundational concepts and integration in a comprehensive mini-project
  • Day 3: Authentication systems and advanced conditional logic
  • Days 4-5: Data structures, loops, and dynamic data management

Programs Overview

01_hello_world_input.py - Basic Syntax & User Interaction (Day 1)

Key Concepts Learned:

  • print() statements and output formatting
  • input() function for user interaction
  • String concatenation (+) and f-string formatting (f"")
  • Basic variable assignment

Program Description: A welcoming program that greets users and collects basic information, demonstrating how to read and display user input.


02_dog_health_checker.py - Variables & Conditionals (Day 2)

Key Concepts Learned:

  • Multiple variable types: str, int, bool
  • Conditional logic with if/elif/else
  • Boolean operators: and, not
  • Arithmetic operations in print statements
  • Multi-condition logic trees

Program Description: Analyzes a dog's condition based on weight, hunger, and tiredness levels, providing appropriate recommendations using nested conditional statements.


03_mood_based_responses.py - Multiple Conditionals (Day 2)

Key Concepts Learned:

  • Multiple separate if statements
  • String comparison operations
  • Appropriate responses based on user input
  • Handling different emotional states programmatically

Program Description: An emotional support program that responds differently to user feelings (good, sad, mad, excited, bored) with encouraging messages.


04_lemonade_stand_calculator.py - Arithmetic & Variables (Day 2)

Key Concepts Learned:

  • Mathematical operations: multiplication, subtraction
  • Variable computation and reuse
  • Financial calculations: revenue, cost, profit
  • Print formatting with variables

Program Description: A business calculator that determines profitability for a lemonade stand, showing how to perform and display financial computations.


05_smart_dog_assistant.py - MINI PROJECT (Day 2)

Key Concepts Learned:

  • Integration of all previous concepts
  • Advanced user input validation
  • Type conversion (input() to int/float)
  • Complex conditional logic
  • Structured program design
  • Multi-step user interaction
  • Boolean conversion from user input

Program Description: A comprehensive dog care assistant that collects multiple pieces of information and provides personalized recommendations. This program brings together all the skills learned throughout the journey!

06-login-gate.py - Authentication & Access Control (Day 3)

Key Concepts Learned:

  • String comparison for authentication
  • Multiple conditional branches with if/elif/else
  • Logical operators (and) for multi-factor validation
  • User credential handling

Program Description: A simple authentication system that validates user credentials and grants different access levels based on username and password combinations.


07_grade_checker.py - Range-Based Conditionals (Day 3)

Key Concepts Learned:

  • Numeric range validation with comparison operators
  • Multiple grade boundaries and letter grade mapping
  • Complex conditional logic for educational applications
  • Input validation for numeric data

Program Description: An academic grading system that converts numerical scores to letter grades, demonstrating range-based conditional logic.


08_toolbox.py - Introduction to Lists (Days 4-5)

Key Concepts Learned:

  • List creation and indexing
  • List manipulation with .append()
  • List length determination with len()
  • Iteration through lists with for loops

Program Description: A basic toolbox inventory system that introduces list data structures and fundamental list operations.


09_grocery_tracker.py - Dynamic List Management (Days 4-5)

Key Concepts Learned:

  • Interactive list building with user input
  • while loops for continuous input collection
  • enumerate() for indexed list display
  • String manipulation with .lower()
  • Loop control with break

Program Description: An interactive grocery list manager that allows users to dynamically add items and displays the final list with numbered items.


10_counter.py - Advanced Loop Operations (Days 4-5)

Key Concepts Learned:

  • Multiple loop types (for and while)
  • List iteration and manipulation
  • Counter variables and accumulation
  • Index-based list access
  • Mathematical operations within loops

Program Description: A comprehensive demonstration of loop operations including number iteration, task management, and sum calculation using different looping techniques.


How to Run the Programs

Each Python file can be run individually:

# Navigate to the project directory
cd learning-to-code-python.-

# Run any program (replace filename)
python 01_hello_world_input.py
python 02_dog_health_checker.py
python 03_mood_based_responses.py
python 04_lemonade_stand_calculator.py
python 05_smart_dog_assistant.py
python 06-login-gate.py
python 07_grade_checker.py
python 08_toolbox.py
python 09_grocery_tracker.py
python 10_counter.py

What I've Learned

Technical Skills Demonstrated:

  • Python syntax and basic operations
  • User input handling and validation
  • Variable management (strings, integers, booleans, floats)
  • Conditional statements (if/elif/else)
  • Arithmetic and mathematical operations
  • String formatting and concatenation
  • Program structure and flow control
  • Error handling with type conversion
  • Interactive command-line applications
  • List data structures and manipulation
  • Loop constructs (for/while)
  • Authentication and access control
  • Dynamic data collection and management
  • Index-based operations with enumerate()

Soft Skills Developed:

  • Logical thinking and problem-solving
  • Code organization and documentation
  • Iterative learning approach
  • Breaking complex problems into manageable pieces

Current Status

  • All programs functional and tested
  • Git version control properly configured
  • Repository organized with descriptive filenames
  • Comprehensive documentation added

Next Steps

Now that I've mastered these fundamentals, I'm ready to explore:

  • Functions and modules
  • Advanced data structures (dictionaries, tuples, sets)
  • File input/output operations
  • Error handling with try/except
  • Object-oriented programming concepts
  • API integration and web scraping

This repository represents my first steps into the world of programming - from "Hello, World!" to a fully functional interactive assistant application!

About

This is my daily journey of what i'm learning to program and create in python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages