Facebook
From Sweltering Pudu, 3 Years ago, written in Python.
Embed
Download Paste or View Raw
Hits: 102
  1. year = int(input("Enter car year:\n"))
  2.  
  3. if year < 1962:
  4.     print("Car was not manufactured before 1962")
  5. elif year <= 1964:
  6.     print("$", 18500)
  7. elif year <= 1968:
  8.     print("$", 6000)
  9. elif year <= 1971:
  10.     print("$", 12000)
  11. elif year <= 1975:
  12.     print("$", 48000)
  13. elif year <= 1980:
  14.     print("$", 200000)
  15. elif year <= 1985:
  16.     print("$", 650000)
  17. elif year <= 2012:
  18.     print("$", 35000000)
  19. elif year <= 2014:
  20.     print("$", 52000000)