python-by-example-150-chall.../challenges35-44/challenge-044.py
2019-07-17 16:43:09 +03:00

8 lines
263 B
Python

people = int(input('Please enter number of people want to invite to party : '))
if people < 10:
for i in range(0, people):
name = str(input('Please enter name : '))
print('{0} has been invited'.format(name))
else:
print('Too many people')