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 Python Basics (2015) Python Data Types Strings

python 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.

Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

I'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 :smiley:

Thanks Jennifer

1 Answer

MICHAEL P
MICHAEL P
5,191 Points

I do not see any difference between those, either.

Thanks Michael