Skip to content

Instantly share code, notes, and snippets.

@levidurfee
Created February 4, 2016 03:05
Show Gist options
  • Save levidurfee/480569cb9415817264bd to your computer and use it in GitHub Desktop.
Save levidurfee/480569cb9415817264bd to your computer and use it in GitHub Desktop.
#!/usr/bin/python
import csv
import sys
print "Hello"
print "What is your name?"
name = raw_input()
print "What is your age?"
age = raw_input()
print "What is your shoe size?"
shoeSize = raw_input()
f = open('info.txt', 'a')
try:
writer = csv.writer(f)
writer.writerow( (name, age, shoeSize) )
finally:
f.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment