CNSA-266-Personal/Intro.py

6 lines
354 B
Python
Raw Normal View History

2024-04-23 09:40:13 -04:00
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")