Skip to content

Commit

Permalink
Basic
Browse files Browse the repository at this point in the history
  • Loading branch information
SanjanaPurbia authored Jul 25, 2021
1 parent e14bc1e commit 93b2263
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions racer.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# to calc prize benefits of a racer
RD=int(input("Enter racing distance covered:"))

if RD>=1000:
rate=2.5
sup_prize=1250
print("-----keep supliment of 5 KG")
elif RD>=700:
rate=2.0
sup_prize=800
print("-----keep supliment of 4 KG")
elif RD>=400:
rate=1.5
sup_prize=450
print("-----keep supliment of 3 KG")
else:
rate=1.0
sup_prize=200
print("-----keep supliment of 2 KG")
cash=RD*rate
print("cash prize: %0.2f Rs with health benefit of %d Rs"\
%(cash,sup_prize))

0 comments on commit 93b2263

Please sign in to comment.