Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

Every time I run my code it seems like it is running it but does not have any output:

def split_check(total, number_of_people): cost_per_person = total / number_of_people return cost_per_person

amount_due = split_check(84.97, 4) print("Each person owes ${}" .format(amount_due))

Console

treehouse:~?workspace$: python check_please.py treehouse:~?workspace$:

I did not know how to take a snapshot and copy paste the link

1 Answer

Steven Parker
Steven Parker
231,271 Points

It could be an indentation issue. We can't tell from code posted without formatting.

Here's a video that explains how to make a workspace snapshot.
And for posting code directly, here's a video about how to do code formatting.