On number one, I can figure out the categories by looking at the headers that are printed, but it is a lot messier than I think it should be. My code looks like this and I can't figure out why it's not giving me a simple answer:
filename = "hurricanes-2015.txt"
f = open(filename,'r').readlines()
header = f[0].strip().split('\t')
print header
On number one, I can figure out the categories by looking at the headers that are printed, but it is a lot messier than I think it should be. My code looks like this and I can't figure out why it's not giving me a simple answer: filename = "hurricanes-2015.txt" f = open(filename,'r').readlines() header = f[0].strip().split('\t') print header