Skip to content

Instantly share code, notes, and snippets.

@nadia2012
Created February 20, 2012 22:42
Show Gist options
  • Save nadia2012/1872017 to your computer and use it in GitHub Desktop.
Save nadia2012/1872017 to your computer and use it in GitHub Desktop.
ex2
my_list = ["my name is nadia ", "21 years old ",3.50 ,208115517 ]
for i in my_list:
print "student info is %r" % i
my_map = { "student a GPA: " : 4 ,"student B GPA:" : 3 ,"student C GPA:" : 2 ,"student C GPA:":1}
for x in my_map:
print x , my_map[x]
count=0
while count < 6 :
print 'the count is:' , count
count = count + 1
print "close"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment