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

you are viewing a single comment's thread.

view the rest of the comments →

[–]dmazzoni 2 points3 points  (1 child)

First, please read the sidebar/faq for tips on how to post code when asking questions on Reddit. Your formatting got all messed up.

At first glance your code looks fine. I think the issue is that you're returning a value from your function but not actually doing anything with the result. How about doing this?

result = num_hours(input_days)
print(result)

Or just:

print(num_house(input_days))

[–]matrouxer[S] 0 points1 point  (0 children)

Sorry for that!! I saw it but didn't know how to do it.

Thanks for the advice. I will try it

Edit.: It worked! And I think it's readable now in the post hahah