python-by-example-150-chall.../challenges45-51/challenge-048.py
2019-07-17 16:43:09 +03:00

9 lines
339 B
Python

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))