Skip to content

Exercises & Solutions for Nick Tallant's TA Sessions (Mondays at 4:30)

Notifications You must be signed in to change notification settings

harris-ippp/Nick_TA_Sessions

Repository files navigation

Nick Tallant's TA Sessions

If you have trouble using this repo, review this GitHub tutorial on clone, fetch, merge, and pull.

1 - Shell Scripting

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

2 - Python Basics

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
    • Specifically autoreload

Code snippets:

my_variable = input('Text will show up here')

3 - Data Structures

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, '']

4 - Putting it Together

See Media.ipynb for objectives!

About

Exercises & Solutions for Nick Tallant's TA Sessions (Mondays at 4:30)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published