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 trialEllis Phillips
Python Development Techdegree Student 1,857 PointsWhy 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
231,275 PointsAs 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
.
Ellis Phillips
Python Development Techdegree Student 1,857 PointsEllis Phillips
Python Development Techdegree Student 1,857 PointsAh thanks. Im using Jupiter hub, not the workspace so I guess that's where my confusion was coming from.