Permalink
Browse files

extra credit - added a favorite color argument, and added a line to t…

…he print with it
  • Loading branch information...
mwarkentin committed Jan 9, 2011
1 parent 181c31f commit 928b2236a9d50dc63d38c2cba758a68323da2f02
Showing with 3 additions and 2 deletions.
  1. +3 −2 ex14.py
View
@@ -1,6 +1,6 @@
from sys import argv
script, user_name = argv
script, user_name, fave_color = argv
prompt = '8====D~~~ '
print "Hi %s, I'm the %s script." % (user_name, script)
@@ -18,4 +18,5 @@
Alright, so you said %r about liking me.
You live in %r. Not sure where that is.
And you have a %r computer. Nice.
""" % (likes, lives, computer)
Your favorite color is %r. Mine too!
""" % (likes, lives, computer, fave_color)

0 comments on commit 928b223

Please sign in to comment.