{"id":13936441,"url":"https://github.com/learnbyexample/Python_Basics","last_synced_at":"2025-07-19T22:30:21.826Z","repository":{"id":52195109,"uuid":"61780133","full_name":"learnbyexample/Python_Basics","owner":"learnbyexample","description":":snake: Syntax, working with Shell commands, Files, Text Processing, and more...","archived":true,"fork":false,"pushed_at":"2020-12-29T11:43:06.000Z","size":168,"stargazers_count":553,"open_issues_count":0,"forks_count":186,"subscribers_count":51,"default_branch":"master","last_synced_at":"2024-08-08T23:23:40.052Z","etag":null,"topics":["beginners","ebook","linux","python","workshop-materials"],"latest_commit_sha":null,"homepage":"","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/learnbyexample.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}},"created_at":"2016-06-23T06:25:38.000Z","updated_at":"2024-06-30T18:13:14.000Z","dependencies_parsed_at":"2022-09-09T12:13:27.180Z","dependency_job_id":null,"html_url":"https://github.com/learnbyexample/Python_Basics","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/learnbyexample%2FPython_Basics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/learnbyexample%2FPython_Basics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/learnbyexample%2FPython_Basics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/learnbyexample%2FPython_Basics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/learnbyexample","download_url":"https://codeload.github.com/learnbyexample/Python_Basics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226686718,"owners_count":17666928,"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":["beginners","ebook","linux","python","workshop-materials"],"created_at":"2024-08-07T23:02:40.609Z","updated_at":"2024-11-27T04:31:02.208Z","avatar_url":"https://github.com/learnbyexample.png","language":"Python","readme":"\u003cbr\u003e\n\n---\n\n:warning: :warning: I'm archiving this repo, as I don't intend to work on this repo further.\n\nI'm re-using materials in this repo for the **100 Page Python Intro** book (https://github.com/learnbyexample/100_page_python_intro).\n\nI'm also working on **Practice Python Projects** book (https://github.com/learnbyexample/practice_python_projects), which I had intended in this repo for the `mini_projects` folder.\n\n---\n\n\u003cbr\u003e \u003cbr\u003e \u003cbr\u003e\n\n# \u003ca name=\"python-basics\"\u003e\u003c/a\u003ePython Basics\n\nIntroduction to Python - Syntax, working with Shell commands, Files, Text Processing, and more...\n\n* Suitable for a one/two day workshop for Python beginners\n* Visit [Python re(gex)?](https://github.com/learnbyexample/py_regular_expressions) repo for a book on regular expressions\n* [Python resources for everybody](https://learnbyexample.github.io/py_resources/) for a curated and searchable collection, including resources for complete beginners to programming\n* For more related resources, visit [scripting course](https://github.com/learnbyexample/scripting_course) and my programming blog https://learnbyexample.github.io\n\n\u003cbr\u003e\n\n# \u003ca name=\"chapters\"\u003e\u003c/a\u003eChapters\n\n* [Introduction](./Introduction.md)\n    * Installation, Hello World example, Python Interpreter, Python Standard Library\n* [Number and String data types](./Number_and_String_datatypes.md)\n    * Numbers, String, Constants, Built-in Operators\n* [Functions](./Functions.md)\n    * def, print function, range function, type function, Variable Scope\n* [Getting User input](./User_input.md)\n    * Integer input, Floating point input, String input\n* [Executing external commands](./Executing_external_commands.md)\n    * Calling Shell commands, Calling Shell commands with expansion, Getting command output and redirections\n* [Control Structures](./Control_structures.md)\n    * Condition checking, if, for, while, continue and break\n* [Lists](./Lists.md)\n    * Assigning List variables, Slicing and Modifying Lists, Copying Lists, List Methods and Miscellaneous, Looping, List Comprehension, Getting List as user input, Getting random items from list\n* [Sequence, Set and Dict data types](./Sequence_Set_Dict_data_types.md)\n    * Strings, Tuples, Set, Dictionary\n* [Text Processing](./Text_Processing.md)\n    * String methods, Regular Expressions, Pattern matching and extraction, Search and Replace, Compiling Regular Expressions, Further Reading on Regular Expressions\n* [File handling](./File_handling.md)\n    * open function, Reading files, Writing to files, Inplace editing with fileinput\n* [Command line arguments](./Command_line_arguments.md)\n    * Known number of arguments, Varying number of arguments, Using program name in code, Command line switches\n* [Exception Handling and Debugging](./Exception_Handling_and_Debugging.md)\n    * Exception Handling, Syntax check, pdb, Importing program\n* [Docstrings](./Docstrings.md)\n    * Style guide, Palindrome example\n* [Testing](./Testing.md)\n    * assert statement, Using assert to test a program, Using unittest framework, Using unittest.mock to test user input and program output, Other testing frameworks\n* [Exercises](./Exercises.md)\n* [Further Reading](./Further_Reading.md)\n    * Standard topics not covered, Useful links on coding, Python extensions\n\n\u003cbr\u003e\n\n## \u003ca name=\"contributing\"\u003e\u003c/a\u003eContributing\n\n* Please open an issue for typos/bugs/suggestions/etc\n    * As this repo is no longer actively worked upon, **please do not submit pull requests**\n* Share the repo with friends/colleagues, on social media, etc to help reach other learners\n* In case you need to reach me, mail me at `echo 'bGVhcm5ieWV4YW1wbGUubmV0QGdtYWlsLmNvbQo=' | base64 --decode` or send a DM via [twitter](https://twitter.com/learn_byexample)\n\n\u003cbr\u003e\n\n# \u003ca name=\"ebook\"\u003e\u003c/a\u003eebook\n\n* Read as ebook on [gitbook](https://learnbyexample.gitbooks.io/python-basics/content/index.html)\n* All `legacy.gitbook.com` links are now automatically redirected to `gitbook.com`, so there's no longer an option to download ebooks for offline reading\n\n\u003cbr\u003e\n\n# \u003ca name=\"acknowledgements\"\u003e\u003c/a\u003eAcknowledgements\n\n* [automatetheboringstuff](https://automatetheboringstuff.com/) for getting me started with Python\n* [/r/learnpython/](https://www.reddit.com/r/learnpython/) - helpful forum for beginners and experienced programmers alike\n* [stackoverflow](https://stackoverflow.com/) - for getting answers to pertinent questions as well as sharpening skills by understanding and answering questions\n* [Devs and Hackers](http://devup.in/) - helpful slack group\n* [Weekly Coders, Hackers \u0026 All Tech related thread](https://www.reddit.com/r/india/search?q=Weekly+Coders%2C+Hackers+%26+All+Tech+related+thread+author%3Aavinassh\u0026amp;restrict_sr=on\u0026amp;sort=new\u0026amp;t=all) - for suggestions and critique\n\n\u003cbr\u003e\n\n# \u003ca name=\"license\"\u003e\u003c/a\u003eLicense\n\nThis work is licensed under a [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-nc-sa/4.0/)\n\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flearnbyexample%2FPython_Basics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flearnbyexample%2FPython_Basics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flearnbyexample%2FPython_Basics/lists"}