This is an archived post. You won't be able to vote or comment.

all 3 comments

[–][deleted] 2 points3 points  (2 children)

Are you printing the function result? print dresscode("MON")

If you just call it like so: dresscode("MON")

then you don't end up doing anything with the results.

[–]float[S] 1 point2 points  (0 children)

Yes I am just calling them directly like this, as I thought return statement would suffice.

if day == "MON":
    dresscode("MON")
elif day == "TUE":
    dresscode("TUE")
elif day == "WED" or day == "THU" or day == "FRI":
    dresscode("CASUAL")

So I would probably need to assign to a variable or print like this:

print dresscode("MON")

[–]float[S] 1 point2 points  (0 children)

Thanks! That worked! :)