Hello strangers!
↑Help me now :)
-------------------------------------
plagiarism and spamming is not allowed.(◠ᴥ◕ʋ)
best of luck!:D
![](https://hi-static.z-dn.net/files/db0/22ebdbbb2fc0e014d4620d1100d3ef52.jpg)
Answers
def calc_net_amount(name, amount, device_type):
amount = float(amount)
if amount <= 25000:
if device_type == "L":
return amount
if device_type == "D":
return amount - (amount * .05)
if 25001 <= amount <= 50000:
if device_type == "L":
return amount - (amount * .05)
if device_type == "D":
return amount - (amount * .075)
if 50001 <= amount <= 100000:
if device_type == "L":
return amount - (amount * .075)
if device_type == "D":
return amount - (amount * .1)
if device_type == "L":
return amount - (amount * .1)
if device_type == "D":
return amount - (amount * .15)
name, amount, device_type = input("enter name, amount & device: ").split()
print(f"{name}: {calc_net_amount(name, amount, device_type)}")
Explanation:
this is answer of your question
![](https://hi-static.z-dn.net/files/d3a/25c304b150bebaf8d206f1087a32d7c9.jpg)
![](https://hi-static.z-dn.net/files/dc1/ef4cc23b63c581e0f81fc11cdc48fc56.jpg)