Skip to content

Commit 69601a8

Browse files
gift price counting in python.
1 parent 9c627cc commit 69601a8

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

gifts.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
sweaterPrice = 68
2+
sweaterCount = 3
3+
computerGamePrice = 75
4+
computerGameCount = 1
5+
braceletPrice = 43
6+
braceletCount = 2
7+
8+
#discount And Rebate
9+
returnBraceletCount = 1
10+
rebateOnComputerGame = 10
11+
12+
# calculation part
13+
14+
totalGiftPrice = (sweaterPrice * sweaterCount) + (computerGamePrice * computerGameCount)
15+
discountAndRebate = (braceletPrice * returnBraceletCount) + rebateOnComputerGame
16+
17+
finalGiftPrice = totalGiftPrice - discountAndRebate
18+
19+
print("final gift price is", finalGiftPrice)

0 commit comments

Comments
 (0)