Created
March 16, 2018 08:56
-
-
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"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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