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 trialjohn larson
16,594 Pointspython shell..print()
In the python shell, I don't see any difference between print(variable)"hit enter" or: variable "hit enter". Wondering if it's an update with the newest version of python or something else. I'm sure in a script it would be necessary, but it doesn't seem so in the console. Kenneth uses print() in the console.
john larson
16,594 PointsThanks Jennifer
1 Answer
MICHAEL P
5,191 PointsI do not see any difference between those, either.
john larson
16,594 PointsThanks Michael
Jennifer Nordell
Treehouse TeacherJennifer Nordell
Treehouse TeacherI've never seen any difference either. You'd probably actually have to ask Kenneth why he does that. But I have two theories. Either it was required back then (but I highly doubt it). Or he does it so that students will get used to doing the print statement as it will be required in the script. You may actually have to tag Kenneth for this one