{"id":26487531,"url":"https://github.com/vante-dev/python-learning","last_synced_at":"2025-03-20T06:39:32.381Z","repository":{"id":283367215,"uuid":"948346682","full_name":"vante-dev/python-learning","owner":"vante-dev","description":"Just a repo where i post my basic python projects","archived":false,"fork":false,"pushed_at":"2025-03-14T07:06:31.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-19T22:02:09.982Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vante-dev.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-03-14T07:06:06.000Z","updated_at":"2025-03-14T08:02:19.000Z","dependencies_parsed_at":"2025-03-19T22:02:13.413Z","dependency_job_id":"2f83a29b-8314-4357-b065-fc26e9c82458","html_url":"https://github.com/vante-dev/python-learning","commit_stats":null,"previous_names":["vante-dev/python-learning"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vante-dev%2Fpython-learning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vante-dev%2Fpython-learning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vante-dev%2Fpython-learning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vante-dev%2Fpython-learning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vante-dev","download_url":"https://codeload.github.com/vante-dev/python-learning/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244566927,"owners_count":20473451,"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":[],"created_at":"2025-03-20T06:39:31.863Z","updated_at":"2025-03-20T06:39:32.373Z","avatar_url":"https://github.com/vante-dev.png","language":null,"readme":"# Python Learning Guide\n\nWelcome to the **Python Learning Guide**! This guide is designed to help you master Python from the basics to advanced topics. Feel free to contribute and enhance the guide.\n\n## Table of Contents\n\n1. [Introduction to Python](#introduction-to-python)\n2. [Setting Up Python](#setting-up-python)\n3. [Basic Syntax and Data Types](#basic-syntax-and-data-types)\n4. [Control Flow](#control-flow)\n5. [Functions and Modules](#functions-and-modules)\n6. [Object-Oriented Programming](#object-oriented-programming)\n7. [File Handling](#file-handling)\n8. [Error Handling](#error-handling)\n9. [Libraries and Frameworks](#libraries-and-frameworks)\n10. [Projects and Practice](#projects-and-practice)\n\n---\n\n## Introduction to Python\nPython is a high-level, interpreted programming language known for its simplicity and readability. It is widely used for web development, data science, automation, AI, and more.\n\n## Setting Up Python\n1. Download and install Python from [python.org](https://www.python.org/)\n2. Verify installation:\n   ```bash\n   python --version\n   ```\n3. Use **pip** to install packages:\n   ```bash\n   pip install package_name\n   ```\n\n## Basic Syntax and Data Types\n- **Variables**: `x = 10`, `name = \"John\"`\n- **Data Types**: `int`, `float`, `string`, `list`, `tuple`, `dict`, `set`\n- **Printing output**: `print(\"Hello, World!\")`\n- **Comments**: `# This is a comment`\n\n## Control Flow\n- **Conditional Statements**:\n  ```python\n  if condition:\n      # code block\n  elif condition:\n      # another block\n  else:\n      # default block\n  ```\n- **Loops**:\n  ```python\n  for i in range(5):\n      print(i)\n\n  while condition:\n      # code block\n  ```\n\n## Functions and Modules\n- **Defining Functions**:\n  ```python\n  def greet(name):\n      return f\"Hello, {name}!\"\n  ```\n- **Importing Modules**:\n  ```python\n  import math\n  print(math.sqrt(25))\n  ```\n\n## Object-Oriented Programming\n- **Defining a Class**:\n  ```python\n  class Person:\n      def __init__(self, name, age):\n          self.name = name\n          self.age = age\n  ```\n\n## File Handling\n- **Reading a file**:\n  ```python\n  with open(\"file.txt\", \"r\") as file:\n      content = file.read()\n  ```\n- **Writing to a file**:\n  ```python\n  with open(\"file.txt\", \"w\") as file:\n      file.write(\"Hello, Python!\")\n  ```\n\n## Error Handling\n- **Using try-except**:\n  ```python\n  try:\n      x = 1 / 0\n  except ZeroDivisionError:\n      print(\"Cannot divide by zero!\")\n  ```\n\n## Libraries and Frameworks\n- **Popular Libraries**:\n  - NumPy (Scientific computing)\n  - Pandas (Data analysis)\n  - Flask/Django (Web development)\n  - TensorFlow/PyTorch (Machine Learning)\n  - Selenium (Automation \u0026 Web Scraping)\n\n## Projects and Practice\n- **Beginner**: To-Do List App, Calculator\n- **Intermediate**: Web Scraper, Data Visualization\n- **Advanced**: Machine Learning Model, API Development\n\n---\n\n## Contributing\nFeel free to fork this repo, improve the guide, and create a pull request!\n\n## License\nThis project is open-source under the MIT License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvante-dev%2Fpython-learning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvante-dev%2Fpython-learning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvante-dev%2Fpython-learning/lists"}