Skip to content

Instantly share code, notes, and snippets.

@Tyaedalis
Created February 19, 2012 05:10
Show Gist options
  • Save Tyaedalis/1862103 to your computer and use it in GitHub Desktop.
Save Tyaedalis/1862103 to your computer and use it in GitHub Desktop.
Challenge #1
name, age, userName = (raw_input('Name: '), raw_input('Age: '), raw_input('Reddit Username: '))
with open('UserInfo.txt', 'a') as f:
f.write('Name: {0}\nAge: {1}\nReddit Username: {2}\n\n'.format(name, age, userName))
print 'Your name is {0}, you are {1} years old, and your username is {2}.'.format(name, age, userName)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment