# Python_Basics **Repository Path**: shuochenok/Python_Basics ## Basic Information - **Project Name**: Python_Basics - **Description**: :snake: Syntax, working with Shell commands, Files, Text Processing, and more... - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-05-25 - **Last Updated**: 2024-10-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![Join the chat at https://gitter.im/learnbyexample/scripting_course](https://badges.gitter.im/learnbyexample/scripting_course.svg)](https://gitter.im/learnbyexample/scripting_course) [![support learnbyexample](https://liberapay.com/assets/widgets/donate.svg)](https://liberapay.com/learnbyexample/donate)
# Python Basics Introduction to Python - Syntax, working with Shell commands, Files, Text Processing, and more... * Suitable for a one/two day workshop for Python beginners * [Python curated resources](https://github.com/learnbyexample/scripting_course/blob/master/Python_curated_resources.md) for more complete resources list, including tutorials for beginners * For more related resources, visit [scripting course](https://github.com/learnbyexample/scripting_course)
# Chapters * [Introduction](./Introduction.md) * Installation, Hello World example, Python Interpreter, Python Standard Library * [Number and String data types](./Number_and_String_datatypes.md) * Numbers, String, Constants, Built-in Operators * [Functions](./Functions.md) * def, print function, range function, type function, Variable Scope * [Getting User input](./User_input.md) * Integer input, Floating point input, String input * [Executing external commands](./Executing_external_commands.md) * Calling Shell commands, Calling Shell commands with expansion, Getting command output and redirections * [Control Structures](./Control_structures.md) * Condition checking, if, for, while, continue and break * [Lists](./Lists.md) * 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 * [Sequence, Set and Dict data types](./Sequence_Set_Dict_data_types.md) * Strings, Tuples, Set, Dictionary * [Text Processing](./Text_Processing.md) * String methods, Regular Expressions, Pattern matching and extraction, Search and Replace, Compiling Regular Expressions, Further Reading on Regular Expressions * [File handling](./File_handling.md) * open function, Reading files, Writing to files, Inplace editing with fileinput * [Command line arguments](./Command_line_arguments.md) * Known number of arguments, Varying number of arguments, Using program name in code, Command line switches * [Exception Handling and Debugging](./Exception_Handling_and_Debugging.md) * Exception Handling, Syntax check, pdb, Importing program * [Docstrings](./Docstrings.md) * Style guide, Palindrome example * [Testing](./Testing.md) * assert statement, Using assert to test a program, Using unittest framework, Using unittest.mock to test user input and program output, Other testing frameworks * [Exercises](./Exercises.md) * [Further Reading](./Further_Reading.md) * Standard topics not covered, Useful links on coding, Python extensions
## Contributing * Please open an issue for typos/bugs/suggestions/etc * Even for pull requests, open an issue for discussion before submitting PRs * or [gitter group chat](https://gitter.im/learnbyexample/scripting_course) for discussion as well as for help/mentorship * Share the repo with friends/colleagues, on social media, etc to help reach other learners * Contribute by donating on [liberapay](https://liberapay.com/learnbyexample/donate) * In case you need to reach me, use [gitter private chat](https://gitter.im/learnbyexample) * or mail me at `echo 'bGVhcm5ieWV4YW1wbGUubmV0QGdtYWlsLmNvbQo=' | base64 --decode`
# ebook * Read as ebook on [gitbook](https://learnbyexample.gitbooks.io/python-basics/content/index.html) * Download ebook for offline reading - [link](https://www.gitbook.com/book/learnbyexample/python-basics/details)
# Acknowledgements * [automatetheboringstuff](https://automatetheboringstuff.com/) for getting me started with Python * [/r/learnpython/](https://www.reddit.com/r/learnpython/) - helpful forum for beginners and experienced programmers alike * [stackoverflow](https://stackoverflow.com/) - for getting answers to pertinent questions as well as sharpening skills by understanding and answering questions * [Devs and Hackers](http://devup.in/) - helpful slack group * [Weekly Coders, Hackers & All Tech related thread](https://www.reddit.com/r/india/search?q=Weekly+Coders%2C+Hackers+%26+All+Tech+related+thread+author%3Aavinassh&restrict_sr=on&sort=new&t=all) - for suggestions and critique
# License This work is licensed under a [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-nc-sa/4.0/)