GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - learnbyexample/Python_Basics: :snake: Syntax, working with Shell commands, Files, Text Processing, and more...

This repository was archived by the owner on Dec 29, 2020. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

149 Commits
149 Commits

Folders and files

NameName
Last commit message
Last commit date
exercise_files
exercise_files
 
 
exercise_solutions
exercise_solutions
 
 
mini_projects
mini_projects
 
 
python_programs
python_programs
 
 
Command_line_arguments.md
Command_line_arguments.md
 
 
Control_structures.md
Control_structures.md
 
 
Docstrings.md
Docstrings.md
 
 
Exception_Handling_and_Debugging.md
Exception_Handling_and_Debugging.md
 
 
Executing_external_commands.md
Executing_external_commands.md
 
 
Exercises.md
Exercises.md
 
 
File_handling.md
File_handling.md
 
 
Functions.md
Functions.md
 
 
Further_Reading.md
Further_Reading.md
 
 
Introduction.md
Introduction.md
 
 
Lists.md
Lists.md
 
 
Number_and_String_datatypes.md
Number_and_String_datatypes.md
 
 
README.md
README.md
 
 
Sequence_Set_Dict_data_types.md
Sequence_Set_Dict_data_types.md
 
 
Testing.md
Testing.md
 
 
Text_Processing.md
Text_Processing.md
 
 
User_input.md
User_input.md
 
 

Repository files navigation



⚠️ ⚠️ 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 to gitbook.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

About

🐍 Syntax, working with Shell commands, Files, Text Processing, and more...

Topics

beginnersebooklinuxpythonworkshop-materials

Resources

Readme
Activity

Stars

616 stars

Watchers

3 watching

Forks

198 forks
Report repository

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.