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 trialAlexander Bellantine
1,606 Points'None' at the end of output line
Dear Fellow Pythonistas!
My code works fine, but at the end of outputs there is a line that says 'none'. I looked up what could cause this and another forum says it has to do with the no 'return' aspect of the newly defined functions. Why does this come up for me but not Craig?
Thank you to anyone that takes the time to answer I appreciate it :)
P.S. I have a screenshot of the issue but I'm not sure how to include it, if anyone wants to see it they'll have to tell me how lol
Alex
1 Answer
Steven Parker
231,269 PointsIf you are running python in the interactive mode, it's normal for it to display the return value (or "None" when there isn't any) of any function you invoke manually.
But if you run a program from the command line as shown in the video, this doesn't happen.
For future issues, you might want to take a look at this video about Posting a Question, and perhaps also this one about sharing a snapshot of your workspace.