Skip to content
🐍 Syntax, working with Shell commands, Files, Text Processing, and more...
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
exercise_files added type checking assertions May 21, 2018
exercise_solutions improved regex solution Sep 5, 2018
images added patreon image Oct 9, 2018
mini_projects Create pcalc.py Dec 29, 2017
python_programs variable name change Jul 11, 2017
Command_line_arguments.md
Control_structures.md markdown formatting Mar 18, 2017
Docstrings.md markdown formatting Mar 18, 2017
Exception_Handling_and_Debugging.md clarified and added links for exception handling Oct 11, 2017
Executing_external_commands.md markdown formatting Mar 18, 2017
Exercises.md added two more interesting exercises Apr 8, 2018
File_handling.md
Functions.md examples for f-strings in Python v3.6 Dec 22, 2017
Further_Reading.md markdown formatting Mar 18, 2017
Introduction.md for info on Python installation Apr 14, 2017
Lists.md deleting list elements with slicing notation Sep 24, 2017
Number_and_String_datatypes.md formatting Dec 26, 2017
README.md link to Regular Expressions book Feb 22, 2019
Sequence_Set_Dict_data_types.md notes and examples for Python v3.5/v3.6/v3.7 dict Jun 22, 2018
Testing.md markdown formatting Mar 18, 2017
Text_Processing.md updated regex examples and descriptions Mar 2, 2019
User_input.md markdown formatting Mar 18, 2017

README.md


Python Basics

Introduction to Python - Syntax, working with Shell commands, Files, Text Processing, and more...


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
    • Even for pull requests, open an issue for discussion before submitting PRs
    • or gitter group chat 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 patreon or liberapay
  • In case you need to reach me, use gitter private chat
    • or mail me at echo 'bGVhcm5ieWV4YW1wbGUubmV0QGdtYWlsLmNvbQo=' | base64 --decode

ebook

  • Read as ebook on gitbook
  • Download ebook for offline reading - link

Acknowledgements


License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

You can’t perform that action at this time.