View the step-by-step solution to:

1-3 Final Project Review - IT-140 1-1 Discussion Intro to Scripting X A ALEKS - Dametres Lopez - Home x Codio - Conditional Statements Codio...

Can someone explain what the question is asking I don't understand.7BB9EEA2-123B-420B-AFEB-5443F6C45631.jpeg

7BB9EEA2-123B-420B-AFEB-5443F6C45631.jpeg

1-3 Final Project Review - IT-140
1-1 Discussion Intro to Scripting X A ALEKS - Dametres Lopez - Home x
Codio - Conditional Statements
Codio
https://codio.com/dlopez7/conditional-statements:5c1711cbab68f03457dca422:oPvfU9le7qLW/tree/challenges%2Fbool-input.py
+
Project
Edit
Find
View
bool-input.py
Tools
Education
Configure....
Project Index (static)
Configure...
4. 3. Boolean...
DLOPEZ7
Get our boolean values from the command line
import sys
isCold= sys . argv[1] ==
- ' True'
Collapse Boolean
GOOD NOUAWNp
isRainy= sys . argv [2] ==
# Your code goes here
4. 3. Boolean inputs
if iscold = (True)
print (iscold)
else :|
We pass in 2 boolean inputs. cold and
You should output a single string:
('cold' or 'warm' ) .
based on these inputs.
) and " ('rainy' or 'dry' )
( ' cold' or 'warm' ) means you should use on of the two
words. depending on the input boolean value
for example False, True =
warm and rainy
Ched
X
Program Output
File "bool-input py". line 9
if isCold = (True)
SyntaxError invalid syntax
109% (11:5]
Python
There is an error is your program
Type here to search
7:54 PM
1/6/2019

Top Answer

The best way to approach your question... View the full answer

3 comments
  • When you explain it it makes it easier. I wish that python would have just explained it like the the instructions were unclear thank you! I understand now!
    • dametreslopez
    • Jan 06, 2019 at 8:19pm
  • Doesn't it need a else: to make it work after the elif?
    • dametreslopez
    • Jan 06, 2019 at 8:30pm
  • you needn't that
    • peter-gabriel
    • Jan 06, 2019 at 8:45pm

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Ask a homework question - tutors are online