net
Search this site
Home
>
Python
Silly Basics:
Header
: Add this to the top of the script
Variable types
: Defining what the data is in a variable
Strings
: Single variable of any length
Lists
: Arrays or lists of values
Tuples
: a read only list
Dictionaries
: Hashes or key value lists.
Loops
: for, while, break, continue
Examples:
Script Arguments
: how to use/define arguments in your script
Script Arguments and Debug
: How to get debug output when running the script
Accept input from pipe
: How to pipe input to a python script
Accept input from command line statement
: How to run a command from within the script, and use the output.
read/write to csv
: how to read and write to a csv file
Match Things
: How to find and match stuff
Print output in columns
: How to output in nice rows
Messing with the OS:
viewing directories
: getting lists of files and folders
Logging and Debugging
: How to properly log and set log levels for debugging
References:
Learning Python the Hard Way
:
PyCharm Edu 2
:
Sublime Text
: Text editor
Subpages
(16):
Accept input from command line statement
Accept input from pipe
Dictionaries
Header
Lists
Logging and Debugging
Loops
Match Things
Print output in columns
read/write to csv
Script Arguments
Script Arguments and Debug
Strings
Tuples
Variables
viewing directories
Comments