GithubHelp home page GithubHelp logo

abhi-infrrd / python_basics Goto Github PK

View Code? Open in Web Editor NEW

This project forked from learnbyexample/python_basics

0.0 1.0 0.0 111 KB

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

Python 100.00%

python_basics's Introduction

Use Join the chat at https://gitter.im/learnbyexample/scripting_course if you need help, have suggestions, etc


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 for more complete resources list, including tutorials for beginners
  • For more related resources, visit scripting course

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

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

python_basics's People

Contributors

learnbyexample avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.