Answer to Question #276474 in Python for Himanshi

Question #276474

Write conditional expressions for


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


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

1
Expert's answer
2021-12-07T09:21:59-0500
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!

Comments

Manshil
28.06.24, 03:10

Thanks

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS