python-by-example-150-chall.../challenges45-51/challenge-048.py

9 lines
339 B
Python
Raw Normal View History

2019-07-17 21:43:09 +08:00
count = 0
choose = str(input('Would you like to add person y|n : '))
while choose == 'y':
name = str(input('Enter name : '))
print('{0} has been invited'.format(name))
count = count + 1
choose = str(input('Do you want to add another person y|n : '))
print('The number of people that invited to party is {0}'.format(count))