-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjewerlers.py
More file actions
68 lines (59 loc) · 2.55 KB
/
jewerlers.py
File metadata and controls
68 lines (59 loc) · 2.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#Use this program to calculate the price to pay for your jewerly
print("Welcome to Jewerler's\nHome of customing jewerly.")
customer = input("\nCustomer: ")
bill = int(input("\nBill Nº: "))
print("\n<")
custom = {1:"·Ring·",2:"·Necklace·",3:"·Brazalet·"}
for value in custom:
print(custom[value])
custom = int(input(">"))
if custom == 1:
print("\nDo you want a custom ring?\n")
ring = {1:'·YES·', 2:'·NO·'}
for value in ring:
print(ring[value])
ring = int(input("\n(1 for YES\n2 for NO)\n>"))
if ring == 1:
custom = input("\nEnter your custom word/phrase: ")
total_price = 200+(len(custom)*10)
print(f"\nThe total price of your custom ring is = ${total_price:.2f}")
elif ring == 2:
total_price = 200
print(f"\nThe total price of your ring is = ${total_price:.2f}")
else:
print("\nPlease, choose a valid option.")
print(f"\nThank you, {customer}.\nHave a nice day, come back soon!")
elif custom == 2:
print("\nDo you want a custom necklace?\n")
necklace = {1:'·YES·', 2:'·NO·'}
for value in necklace:
print(necklace[value])
necklace = int(input("\n(1 for YES\n2 for NO)\n>"))
if necklace == 1:
custom = input("\nEnter your custom word/phrase: ")
total_price = 300+(len(custom)*10)
print(f"\nThe total price of your custom necklace is = ${total_price:.2f}")
elif necklace == 2:
total_price = 300
print(f"\nThe total price of your necklace is = ${total_price:.2f}")
else:
print("\nPlease, choose a valid option.")
print(f"\nThank you, {customer}.\nHave a nice day, come back soon!")
elif custom == 3:
print("\nDo you want a custom brazalet?\n")
brazalet = {1:'·YES·', 2:'·NO·'}
for value in brazalet:
print(brazalet[value])
brazalet = int(input("\n(1 for YES\n2 for NO)\n>"))
if brazalet == 1:
custom = input("\nEnter your custom word/phrase: ")
total_price = 400+(len(custom)*10)
print(f"\nThe total price of your custom brazalet is = ${total_price:.2f}")
elif brazalet == 2:
total_price = 400
print(f"\nThe total price of your brazalet is = ${total_price:.2f}")
else:
print("\nPlease, choose a valid option.")
print(f"\nThank you, {customer}.\nHave a nice day, come back soon!")
else:
print("\nPlease, choose a valid option.")