name = input('Please, enter the name or Q to exit: ')
while name != 'Q':
sales = input('Please, enter a sale: ')
print('{}, your sales are {}'.format(name, sales))
print()
name = input('Please, enter the name or Q to exit: ')
print("That's All Folks")
Output
Please, enter the name or Q to exit: Adam
Please, enter a sale: 23
Adam, your sales are 23
Please, enter the name or Q to exit: Sara
Please, enter a sale: 25
Sara, your sales are 25
Please, enter the name or Q to exit: Q
That's All Folks
Comments
Leave a comment