learnbyexample / Python_basics
🐍 Syntax, working with Shell commands, Files, Text Processing, and more...
Stars: ✭ 511
Programming Languages
python
139335 projects - #7 most used programming language
Projects that are alternatives of or similar to Python basics
You Dont Know Js
📗📒 (PT-Br translation) JS Book Series.
Stars: ✭ 3,683 (+620.74%)
Mutual labels: ebook
Ideabook
一个全栈增长工程师的练手项目集. A Growth Engineering Idea in Action.
Stars: ✭ 3,609 (+606.26%)
Mutual labels: ebook
Css Animation 101
Learn how to bring animation to your web projects
Stars: ✭ 4,236 (+728.96%)
Mutual labels: ebook
Tdd Ebook
Test-Driven Development - Extensive Tutorial. Open Source ebook
Stars: ✭ 314 (-38.55%)
Mutual labels: ebook
ArchLinuxTutorial
✨Arch Linux安装使用教程 每日实时更新! | 包含ArchLinux从安装到日常使用、娱乐、编程、媒体制作的各个方面,让Arch成为你的常用系统吧! | 提供在线网页文档 ✨
Stars: ✭ 513 (+0.39%)
Mutual labels: ebook
Microservices
Microservices from Design to Deployment 中文版 《微服务:从设计到部署》
Stars: ✭ 4,637 (+807.44%)
Mutual labels: ebook
Fanficfare
FanFicFare is a tool for making eBooks from stories on fanfiction and other web sites.
Stars: ✭ 359 (-29.75%)
Mutual labels: ebook
50 Projects For React And The Static Web
⚛ 50 project ideas to learn by doing complete with project briefs, layout ideas, and resources!
Stars: ✭ 319 (-37.57%)
Mutual labels: ebook
Linux command line
💻 Introduction to Linux commands and Shell scripting
Stars: ✭ 378 (-26.03%)
Mutual labels: ebook
Unix As Ide
The ebook version of Tom Ryder's series on the Unix programming environment
Stars: ✭ 315 (-38.36%)
Mutual labels: ebook
Book Socialmediaminingpython
Companion code for the book "Mastering Social Media Mining with Python"
Stars: ✭ 462 (-9.59%)
Mutual labels: ebook
Game Programmer Study Notes
⚓ 我的游戏程序员生涯的读书笔记合辑。你可以把它看作一个加强版的Blog。涉及图形学、实时渲染、编程实践、GPU编程、设计模式、软件工程等内容。Keep Reading , Keep Writing , Keep Coding.
Stars: ✭ 6,050 (+1083.95%)
Mutual labels: ebook
Epub Press Clients
📦 Clients for building books with EpubPress.
Stars: ✭ 370 (-27.59%)
Mutual labels: ebook
Calibre Web
📚 Web app for browsing, reading and downloading eBooks stored in a Calibre database
Stars: ✭ 5,616 (+999.02%)
Mutual labels: ebook
Cnp3
Computer Networking : Principles, Protocols and Practice (first and second edition, third edition is being written on https://github.com/cnp3/ebook)
Stars: ✭ 471 (-7.83%)
Mutual labels: ebook
⚠️ ⚠️ I'm archiving this repo, as I don't intend to work on this repo further.
I'm re-using materials in this repo for the 100 Page Python Intro book (https://github.com/learnbyexample/100_page_python_intro).
I'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.
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
- Visit Python re(gex)? repo for a book on regular expressions
- Python resources for everybody for a curated and searchable collection, including resources for complete beginners to programming
- For more related resources, visit scripting course and my programming blog https://learnbyexample.github.io
Chapters
-
Introduction
- Installation, Hello World example, Python Interpreter, Python Standard Library
-
Number and String data types
- Numbers, String, Constants, Built-in Operators
-
Functions
- def, print function, range function, type function, Variable Scope
-
Getting User input
- Integer input, Floating point input, String input
-
Executing external commands
- Calling Shell commands, Calling Shell commands with expansion, Getting command output and redirections
-
Control Structures
- Condition checking, if, for, while, continue and break
-
Lists
- 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
- Strings, Tuples, Set, Dictionary
-
Text Processing
- String methods, Regular Expressions, Pattern matching and extraction, Search and Replace, Compiling Regular Expressions, Further Reading on Regular Expressions
-
File handling
- open function, Reading files, Writing to files, Inplace editing with fileinput
-
Command line arguments
- Known number of arguments, Varying number of arguments, Using program name in code, Command line switches
-
Exception Handling and Debugging
- Exception Handling, Syntax check, pdb, Importing program
-
Docstrings
- Style guide, Palindrome example
-
Testing
- 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
-
Further Reading
- Standard topics not covered, Useful links on coding, Python extensions
Contributing
- Please open an issue for typos/bugs/suggestions/etc
- As this repo is no longer actively worked upon, please do not submit pull requests
- Share the repo with friends/colleagues, on social media, etc to help reach other learners
- In case you need to reach me, mail me at
echo 'bGVhcm5ieWV4YW1wbGUubmV0QGdtYWlsLmNvbQo=' | base64 --decode
or send a DM via twitter
ebook
- Read as ebook on gitbook
- All
legacy.gitbook.com
links are now automatically redirected togitbook.com
, so there's no longer an option to download ebooks for offline reading
Acknowledgements
- automatetheboringstuff for getting me started with Python
- /r/learnpython/ - helpful forum for beginners and experienced programmers alike
- stackoverflow - for getting answers to pertinent questions as well as sharpening skills by understanding and answering questions
- Devs and Hackers - helpful slack group
- Weekly Coders, Hackers & All Tech related thread - for suggestions and critique
License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].