Final Project Review

B 1-3 Final Project Review – IT-140 x
By 1-1 Discussion Intro to Scripting
X A ALEKS – Dametres Lopez – Home X
C
Codio – Conditional Statements
+
https://codio.com/dlopez7/conditional-statements:5c1711cbab68f03457dca422:oPvfU9le7qLW/tree/challenges%2Ffast-cars1.py
C
Codio
Project
Find
View
Tools
Q
Education
Help
2GO
fast-cars1.py
Configure….
Project Index (static)
Configure…
3. 2. Fast car…
DLOPEZ7
import
# Get our car speeds from the command line
speed1
Collapse Logical Operators
speed2
= int (sys . argv[1])
= int (sys. argv[2])
# Write your code below
3. 2. Fast car’s 1
– co a
if speed1 or speed2 |>70:
print( ‘ fast cars’ )
else:
print ( ‘ok’ )
You are provided with 2 input values which determine the
speed of 2 cars.
If either car is travelling at more than 70 then output fast cars
Otherwise output ‘ok’.
Check It!
AST RUN on 1/6/2019. 6.38 02 PM
Program Output
File "fast-cars1.py", line 8
if speed1 or speed2 => 70
SyntaxError: invalid syntax
There is an error is your program
70% (8:20)
Python
O Type here to search
e
6:38 PM
1/6/2019Read more

 
"Looking for a Similar Assignment? Order now and Get 10% Discount! Use Code "Newclient"