Open up the terminal on your computer.
mkdir SudoLesson
cd SudoLesson
Now use git to clone the github repo for this workshop
git clone https://github.com/romyilano/SudoRoom_Python_DomesticViolence
cd SudoRoom_Python_DomesticViolence
write your first script in the python folder, name it intro_python.py
from sys import argv
script, filename = argv
in_file = open(filename)
indata = in_file.read()
print("Here's your file %r:" % filename)
print("The sample csv is %d bytes long" % len(indata))
input(" Return to continue >")
print("Now I'm going to print out all the data - it's very long!")
input(" Return to continue >")
print(indata)
input(" Return to continue >")
print("Closing the file")
in_file.close()
Run the script, we'll be using the sample.csv which is the spreadsheet of crimes in the Oakland area in the past 90 days
python python/intro_python.py csv/sample.csv