Hello strangers!
↑Help me now :)
-------------------------------------
plagiarism and spamming is not allowed.(◠ᴥ◕ʋ)
best of luck!:D
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