def colorful_conditions():
color = "blue"
if color == "red":
return "first block"
elif color == "white":
return "second block"
elif color == "blue":
return "third block"
else:
return "fourth block"
#This is just for you to see what happens when the function is called
print colorful_conditions()
No comments:
Post a Comment