Skip to content

Commit b94ee8f

Browse files
authored
Merge pull request #4 from CodeJam-by-CSE/dakshina-dev
Add GITIGNORE and Consider shipping while calculating
2 parents e8378a5 + 5e69302 commit b94ee8f

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

.DS_Store

6 KB
Binary file not shown.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.idea

src/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ def validorder(order: Order):
1212
net += item.amount
1313
elif item.type == "product":
1414
net -= item.amount * item.quantity
15+
elif item.type == "shipping":
16+
net -= item.amount
1517
else:
1618
return "Invalid item type: %s" % item.type
1719

0 commit comments

Comments
 (0)