Write multiple if statements: If car_year is before 1967, print "Probably has few safety features." (without quotes). If after 1971, print "Probably has seat belts.". If after 1992, print "Probably has electronic stability control.". If after 2002, print "Probably has tire-pressure monitor.". End each phrase with period and newline. Remember that print() automatically adds a newline. Ex: car_year = 1995 prints: Probably has seat belts. Probably has electronic stability control. This is what I got and it was wrong.... car_year = int(input()) carYear = 1995 if(carYear < 1967): print('Probably has few safety features.\n') if(carYear > 1971): print("Probably has seat belts.\n") if(carYear > 1992): print("Probably has electronic stability control.\n") if(carYear > 2002): print("Probably
Write multiple if statements: If car_year is before 1967, print "Probably has few safety features." (without quotes). If after 1971, print "Probably has seat belts.". If after 1992, print "Probably has electronic stability control.". If after 2002, print "Probably has tire-pressure monitor.". End each phrase with period and newline. Remember that print() automatically adds a newline. Ex: car_year = 1995 prints: Probably has seat belts. Probably has electronic stability control.
This is what I got and it was wrong....
car_year = int(input())
carYear = 1995
if(carYear < 1967):
print('Probably has few safety features.\n')
if(carYear > 1971):
print("Probably has seat belts.\n")
if(carYear > 1992):
print("Probably has electronic stability control.\n")
if(carYear > 2002):
print("Probably has tire-pressure monitor.\n")
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images