I am trying to solve this Boolean Input question but I can't figure out the answer. Here is what it says, We pass in 2 boolean inputs, cold and rainy.
You should output a single string: ('cold' or 'warm') ' and ' ('rainy' or 'dry') based on these inputs.
('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'
And here is my code:
isCold= sys.argv[1] == 'True'
isRainy= sys.argv[2] == 'True'
if isCold:
print('cold and rainy')
elif isRainy:
print('warm and rainy')
else:
print(cold and dry)
I don't know what I can do to solve this.
