{"id":27918643,"url":"https://github.com/hannasdev/python-bootcamp","last_synced_at":"2025-05-06T18:24:21.335Z","repository":{"id":84016635,"uuid":"146989453","full_name":"hannasdev/python-bootcamp","owner":"hannasdev","description":"Stuff from learning Python","archived":false,"fork":false,"pushed_at":"2018-09-02T13:55:47.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-03-27T20:21:26.176Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/hannasdev.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}},"created_at":"2018-09-01T10:33:09.000Z","updated_at":"2018-09-02T13:55:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"8786b881-a012-4edb-b103-5b4a8b2ec49f","html_url":"https://github.com/hannasdev/python-bootcamp","commit_stats":null,"previous_names":["hannasdev/python-bootcamp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hannasdev%2Fpython-bootcamp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hannasdev%2Fpython-bootcamp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hannasdev%2Fpython-bootcamp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hannasdev%2Fpython-bootcamp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hannasdev","download_url":"https://codeload.github.com/hannasdev/python-bootcamp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252742288,"owners_count":21797201,"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-05-06T18:24:16.237Z","updated_at":"2025-05-06T18:24:21.326Z","avatar_url":"https://github.com/hannasdev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Bootcamp\n\nThis repository is used to store stuff related to me learning Python from the course [The Modern Python 3 Bootcamp](https://www.udemy.com/the-modern-python3-bootcamp/learn/v4/t/lecture/9166920?start=0) at Udemy.com.\n\n## Dictionaries\n\nLike objects in JavaScript. Key-value pairs. Unordered (no index) and there can't be duplicates in the keys.\n\nExample:\n\n```python\n  { 'name': 'hanna'}\n```\n\n## Tuples\n\nA list of items that are unique and immutable. Can be used as keys in a dictionary.\n\nExample:\n\n```python\n  # Tuple\n  (23.14323, 25.2435)\n\n  # Tuple used as key in a Dictionary\n  {\n    (23.14323, 25.2435): 'Coordinates to home'\n  }\n```\n\n## Sets\n\nSort of like objects in JavaScript, but without pairing, just elements, with no index and no duplicates.\n\nExample:\n\n```python\n  { 1, 2, 3, 4 }\n```\n\n| Command | What it does                                                 |\n| :-----: | ------------------------------------------------------------ |\n|  `\\|`   | Joins two sets together, with no duplicates.                 |\n|   `\u0026`   | Intersection of two sets, returns items that exists in both. |\n\n## Functions\n\nUse `def` to define a function.\n\nExample:\n\n```python\n# Defining function\ndef my_function ():\n  # do stuff\n\n# Using function\nmyFunction()\n```\n\n### \\*args\n\nUsing `*args` collects the remaining arguments in a function into a tuple.\n\nExample:\n\n```python\ndef sum_all_nums (*args):\n  total = 0\n  for num in args:\n    total += num\n  return total\n\nsum_all_nums(12, 14, 6)\n# returns 32\n```\n\n### \\*\\*kwargs\n\nGathers remaining arguments as a dictionary.\n\nExample:\n\n```python\ndef fav_colors (**kwargs):\n  return kwargs\n\nfav_colors(first=\"purple\", second=\"white\", third=\"red\")\n\n# returns\n# { \"first\": \"purple\", \"second\"=\"white\", \"third\"=\"red\" }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhannasdev%2Fpython-bootcamp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhannasdev%2Fpython-bootcamp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhannasdev%2Fpython-bootcamp/lists"}