Guest User

Untitled

a guest
Sep 17th, 2015
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. days = raw_input("Podaj liczbę dni")
  2. def rental_car_cost(days):
  3. cost = 40*days
  4. if days >= 7:
  5. cost = cost - 50
  6. return cost
  7. elif days >= 3 and days < 7:
  8. cost = cost - 20
  9. return cost
  10. else:
  11. cost
  12. return cost
Advertisement
Add Comment
Please, Sign In to add comment