We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e8378a5 + 5e69302 commit b94ee8fCopy full SHA for b94ee8f
.DS_Store
6 KB
.gitignore
@@ -0,0 +1 @@
1
+.idea
src/main.py
@@ -12,6 +12,8 @@ def validorder(order: Order):
12
net += item.amount
13
elif item.type == "product":
14
net -= item.amount * item.quantity
15
+ elif item.type == "shipping":
16
+ net -= item.amount
17
else:
18
return "Invalid item type: %s" % item.type
19
0 commit comments