6 lines
354 B
Python
6 lines
354 B
Python
|
name = input("What is your name? ")
|
||
|
quantity = int(input("How many items do you have? "))
|
||
|
cost = float(input("how many dollars does each cost? "))
|
||
|
discount = int(input("What is the discount percentage? "))
|
||
|
print("Hello " + name + ". You have " + str(quantity) + " items, and each costs $" + str(cost) + " and there is a " + str(discount) + "% discount")
|