{"id":25273032,"url":"https://github.com/fl97-mo/level-1-python-beginner-guide","last_synced_at":"2025-04-06T08:27:52.035Z","repository":{"id":272156243,"uuid":"915677088","full_name":"fl97-mo/Level-1-Python-Beginner-Guide","owner":"fl97-mo","description":"Learn Python from scratch!  This repository provides a beginner-friendly guide to Python programming, with practical examples,  projects and detailed explanations.","archived":false,"fork":false,"pushed_at":"2025-02-15T15:26:32.000Z","size":1920,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-31T20:36:31.308Z","etag":null,"topics":["algorithms","basics","beginner-friendly","control-structures","data-structures","examples","exercises","functions","modules","oop","programming","projects","python","tutorial"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fl97-mo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-12T14:13:05.000Z","updated_at":"2025-02-15T15:26:35.000Z","dependencies_parsed_at":"2025-02-02T17:29:42.531Z","dependency_job_id":"1dd58935-e8ea-4481-8be7-972533c142c8","html_url":"https://github.com/fl97-mo/Level-1-Python-Beginner-Guide","commit_stats":null,"previous_names":["florianmorina97/exercises","fl97-mo/exercises","fl97-mo/level-1-python-beginner-guide"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fl97-mo%2FLevel-1-Python-Beginner-Guide","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fl97-mo%2FLevel-1-Python-Beginner-Guide/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fl97-mo%2FLevel-1-Python-Beginner-Guide/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fl97-mo%2FLevel-1-Python-Beginner-Guide/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fl97-mo","download_url":"https://codeload.github.com/fl97-mo/Level-1-Python-Beginner-Guide/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247454544,"owners_count":20941517,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["algorithms","basics","beginner-friendly","control-structures","data-structures","examples","exercises","functions","modules","oop","programming","projects","python","tutorial"],"created_at":"2025-02-12T13:49:16.237Z","updated_at":"2025-04-06T08:27:52.029Z","avatar_url":"https://github.com/fl97-mo.png","language":"Jupyter Notebook","readme":"# Level 1: Python for Beginners\n\n*Under construction*\nHello and welcome to my Python beginners course. 🐍\nIn this repository, you will find a variety of **code examples**, **projects**, **exercises**, and **informative insights** in each script.\nThe goal is to build a **free, high-quality,** and **easy-to-understand tutorial**.\n*In the future, I plan to create a detailed script that further deepens the theoretical content.*\n\n---\n\n## Topics\n\n### **00_Course_Material** *Under construction*\n- `PythonBeginnerGuide_fl97-mo.ipynb`: Your personal Python mentor!\n  - Theoretical introduction to Python with practical examples\n  - Interactively designed\n### **01_Basics**\n- `HelloWorld.py`: A simple script used to test GitHub settings and print \"Hello, World!\"\n- `ArithmeticOperators.py`: Explanation and demonstration of arithmetic operators\n- `Variables.py`: What is a variable, how do I use it?\n  - Assigning values to variables of different data types (strings, integers, floats, booleans)\n  - Reassigning variables and changing their values or types throughout the code\n  - Assigning multiple variables in one line\n  - Checking the type of a variable using `type()`.\n- `Input_TypeConversion`: Working with user input and converting data types\n  - `input()` function for user interaction\n  - Converting data types using `int()`, `float()`, and `str()`.\n- `StringOperations.py`: String functions explained\n  - Creating and indexing strings\n  - Combining (concatenating), converting, and formatting strings\n  - `text[::4]`, `.lower()`, `.upper()`, `.replace()`, `.split()`, `\"-\".join()`, `f\"{variable}\"`, `.format()`\n  \n### **02_Control_Structures**\n- `Boolean_Logic_Conditionals.py`: Introduction to boolean logic and conditional statements\n  - `True` and `False` values\n  - Comparison operators (`==`, `!=`, `\u003e`, `\u003c`, `\u003e=`, `\u003c=`)\n  - Logical operators (`and`, `or`, `not`)\n- `Loops.py`: Basic introduction into loops\n  - `while` loops for conditional execution\n  - `for` loops for iterating over sequences\n  - Examples including skipping iterations, breaking out of loops, and reverse looping\n- `NestedLoops.py`: Understanding the logic behind it and be able to apply it in practice\n  - Printing a square pattern\n  - Iterating over a shopping cart (list of dictionaries)\n  - Creating a multiplication table (2d matrix)\n- `ErrorHandling.py`: Basics of error handling in Python\n  - Using `try`, `except`, `else`, and `finally`\n  - Handling `ValueError` and `ZeroDivisionError`\n\n### **03_Functions**\n- `Basics.py`: Examples showcasing:\n  - Defining a simple function\n  - Using parameters to pass values\n  - Returning values from functions\n  - Getting user input and performing calculations\n  - ![Solutions for the tasks](09_Screenshots/03_Basics.png)\n- `Args_Kwargs.py`: Making functions more flexible:\n  - `funtion(*args)`: use custom amount of arguments\n  - `function(**kwargs)`: use custom amount of key:value pairs\n\n### **04_Data_Structures**\n- `Collections.py`: Explaination and examples of collection types\n  - Lists\n  - Sets\n  - Tuples\n- `Dictionaries.py`: A special type of collection with key-value pairs\n  - Adding, updating and removing pairs\n  - Accessing pairs\n  - Iterating over dictionaries\n- `ListComprehensions.py`: Compact way to create and manipulate lists\n  - Basic syntax: `[EXPRESSION for ITEM in ITERABLE]`\n  - `if` and `if-else` list comprehensions\n\n### **05_Modules**\n- `01_BuiltInModules/Math.py`: Exploring Python's `math` module\n  - Common mathematical functions like `sqrt()`, `pow()`, `ceil()`, and `floor()`\n  - Recreating those functions manually\n- `01_BuiltInModules/Random.py`: Exploring Python's `random` module\n  - Typically used functions like `randint()`, `shuffle()`, `choices()`, and `randrange()`\n- `01_BuiltInModules/DateTime.py`: Python's `datetime` module\n  - Getting the current date and time, manipulating dates.\n- `01_BuiltInModules/Statistics.py`: Python's `statistics` module\n  - Useful statistics funtions like `mean()`, `median()`, `variance()`, etc.\n- `02_CustomModules/Supermarket.py`: Creating our own supermarket module!\n  - Defining own functions in our module `calculate_total_price()` and `greet_customer()`\n  - Using Docstrings \n  - Using `main.py` to import and use those\n\n### **06_OOP_Basics**\n- `01_Objects/`: Introduction to object-oriented programming\n  - `main.py`: examples and executions of the product class\n  - `product.py`: Defining the `Product` class -\u003e a blueprint for creating objects (Products) with attributes and methods.\n  - ![OOP Console Output](09_Screenshots/06_OOP_Basics_01_Objects.png)\n- `02_Inheritance/`: Simple example of inheritance\n  - `main.py`: examples and executions\n  - `store_product.py`: Parent class\n  - `vegetable.py`: Child class inheriting from `store_product.py`\n\n### **07_Projects**\n- `FizzBuzz.py`: rather less a project, more a general question in coding interviews\n  - Structure and short example\n- `ShoppingList.py`: A shopping list program where you can:\n  - Add, view, and remove products\n  - Calculate the total cost\n  - Track the quantity and price of each items\n  - ![Shopping List Screenshot](09_Screenshots/07_ShoppingList.png)\n- `ToDoList.py`: A To-do-list where you can:\n  - Create and add tasks to a list\n  - Display the list\n  - Remove items\n  - ![To-do-list Screenshot](09_Screenshots/07_ToDoList.png)\n- `Hangman.py`: A python version of the classic hangman game:\n  - `Visuals.py` displaying ASCII art for the console\n  - with 100 random words\n  - ![Hangman Game](09_Screenshots/07_Hangman.png)\n- `CeasarCipher.py`: A simple encryption and decryption program using the Caesar cipher\n  - Encrypts and decrypts messages by shifting the alphabet by a random number of positions\n- `Product_Information_Menu.py`\u0026 `While_Loop_Product_Information.py`: Solutions to an exercise of the script\n\n### **08_Algorithms**\n- `BubbleSort.py`: A simple algorithm to sort a list of values by comparing and swapping neighbors. \n- `InsertionSort.py`: Builds sorted list each element at a time by inserting into the correct position.\n- `BreadthFirstSearch.py`: A simple implementation of the Breadth-First Search algorithm\n  - Finds the shortest path between locations in an unweighted graph\n  - Queue-based approach to explore all possible paths and select the shortest one\n  - ![BFS Visualisation](09_Screenshots/08_BreadthFirstSearch.png)\n- `SelectionSort.py`: Repeatedly selects the smallest element from the unsorted part and moves it to the beginning.\n\n## Quick Start\n1. **Clone the repository**:\n   ```bash\n   git clone https://github.com/fl97-mo/Level-1-Python-Beginner-Guide\n2. **Navigate to the directory and run a script**:\n   ```bash\n   cd Level-1-Python-Beginner-Guide\n   ```\n   ```bash\n   python 01_Basics/HelloWorld.py\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffl97-mo%2Flevel-1-python-beginner-guide","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffl97-mo%2Flevel-1-python-beginner-guide","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffl97-mo%2Flevel-1-python-beginner-guide/lists"}