Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solution to challenge 10 missing #9

Open
karasugoi opened this issue Sep 9, 2019 · 0 comments
Open

Solution to challenge 10 missing #9

karasugoi opened this issue Sep 9, 2019 · 0 comments

Comments

@karasugoi
Copy link

here is a possible solution:

start the list

guests = []
guestAddition = input ('please enter guest name, enter stop when done')
while guestAddition != 'stop' :
guests.append(guestAddition)
guestAddition = input ('please enter guest name, stop to finish')
#print the list as entered
print (guests)
#sort the list
guests.sort()
#print the names one by one in alphabetical order
numValues = len (guests)
for steps in range(numValues) :
print (guests[steps])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant