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.
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
Key Concepts Learned:
print()statements and output formattinginput()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.
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.
Key Concepts Learned:
- Multiple separate
ifstatements - 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.
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.
Key Concepts Learned:
- Integration of all previous concepts
- Advanced user input validation
- Type conversion (
input()toint/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!
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.
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.
Key Concepts Learned:
- List creation and indexing
- List manipulation with
.append() - List length determination with
len() - Iteration through lists with
forloops
Program Description: A basic toolbox inventory system that introduces list data structures and fundamental list operations.
Key Concepts Learned:
- Interactive list building with user input
whileloops for continuous input collectionenumerate()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.
Key Concepts Learned:
- Multiple loop types (
forandwhile) - 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.
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- 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()
- Logical thinking and problem-solving
- Code organization and documentation
- Iterative learning approach
- Breaking complex problems into manageable pieces
- All programs functional and tested
- Git version control properly configured
- Repository organized with descriptive filenames
- Comprehensive documentation added
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!