Skip to content

Instantly share code, notes, and snippets.

@jsgoller1
Created March 16, 2018 08:56
Show Gist options
  • Save jsgoller1/d11d41d3ee4b282e7732980441d28cfb to your computer and use it in GitHub Desktop.
Save jsgoller1/d11d41d3ee4b282e7732980441d28cfb to your computer and use it in GitHub Desktop.
A python program that solves 5.6 from Stroustrup's "The C++ Programming Language"
people = []
more = 'y'
while (more == 'y'):
name = raw_input("What is your name? ")
age = raw_input("What is your age? ")
people.append([name, age])
more = raw_input("Add another person? [y/n] ")
for each in people:
print each[0]+",", "age", each[1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment