If you have trouble using this repo, review this GitHub tutorial on clone, fetch, merge, and pull.
This lab was meant to familiarize students with navigating the terminal and using shell commands. Things to remember:
- The important ones: cd, ls, mkdir, rm, cp, mv
- Some useful ones: wc, grep, curl
- An example of Regular Expressions
- Workflow with a text editor and interpreter/Shell
This lab covers:
- Doc Strings
- Working with functions
- Returning multiple values with functions
- Returning no values with functions
- Global variables
- A first look at some data structures
- Using iPython
Code snippets:
my_variable = input('Text will show up here')
A brief review on data structures, including:
- pointers
- iterating
- indexing
- lists
- dictionaries
- keys, values, items
- tuples
- sets
Example output of a row for read_salaries()
:
Row from csv :
"AARON, JEFFERY M",SERGEANT,POLICE,F,Salary,,$101442.00,
Row in output:
['AARON', 'JEFFERY', 'SERGEANT', 'POLICE', 'F', 'Salary', '', 101442.0, '']
See Media.ipynb for objectives!