Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Python, what am I doing wrong? Write multiple if statements: If car_year is before 1967, print Probably has few safety features. (without quotes). If after
Python, what am I doing wrong?
Write multiple if statements: If car_year is before 1967, print "Probably has few safety features." (without quotes). If after 1969, print "Probably has seat belts.". If after 1990, print "Probably has electronic stability control.". If after 2002, print "Probably has airbags.". 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.
Write multiple if statements: If car_year is before 1967, print "Probably has few safety features." (without quotes). If after 1969 , print "Probably has seat belts.". If after 1990, print "Probably has electronic stability control.". If after 2002 , print "Probably has airbags.". End each phrase with period and newline. Remember that print 0 automatically adds a newline. Ex: car_year =1995 prints: Probably has seat belts. Probably has electronic stability control. 1: Compare output File "main.py", line 5 print(Probably has few safety features.) SyntaxError: invalid syntax Output differs. See highlights below. input Expected output 2: Compare output Input Your output 3: Compare output Input Your output : Compare output File "main.py", line 5 print(Probably has few safety features.) Syntaxerror: invalid syntax Output differs. See highlights below. Input X Your output Expected output : Compare output File "main.py", line 5 print(Probably has few safety features.) Syntaxerror: invalid syntax Output differs. See highlights below. input x Your output grint (2xohably hag tav aatezy teatuzan-) SyntaxBradx 1nva11d ayntax Output differ. Sne hiphlignts te ov, lngut xy=uautputEvpactezautputProbablyhaagaztBazta.Exobablyhasalect=an1oatab111tycontaol. T: Campare Dutput A G: Cartpare Dutput A
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started