Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python Functions, Packing, and Unpacking Getting Info In and Out of Functions Multiple Arguments and Parameters

Ellis Phillips
Ellis Phillips
Python Development Techdegree Student 1,691 Points

Why is she using Print(function)? You can call the function and enter variables and get results without using print.

Basically title. Doesn't make sense to me, I don't know the point of using print.

1 Answer

Steven Parker
Steven Parker
216,810 Points

As explained in the video, the print statement is added "so we can see the outcome of our changes when we save and run the program".

While working in interactive mode, the result of any evaluation is automatically displayed; but when you run the code as a program, nothing will be seen unless explicitly output using print.