Answered step by step
Verified Expert Solution
Link Copied!

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.image text in transcribedimage text in transcribedimage text in transcribed

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Logic In Databases International Workshop Lid 96 San Miniato Italy July 1 2 1996 Proceedings Lncs 1154

Authors: Dino Pedreschi ,Carlo Zaniolo

1st Edition

3540618147, 978-3540618140

More Books

Students also viewed these Databases questions

Question

identify current issues relating to equal pay in organisations

Answered: 1 week ago