Question #276474

Write conditional expressions for


If a < 10 b =20, else b = 30


Print 'Morning' if time < 12, otherwise print 'Afternoon'

Expert's answer

if a < 10:
    b =20 
else:
    b = 30

if time < 12:
    print("Morning")
else:
    print("Afternoon")

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS