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
Jennifer Nordell
Treehouse Staff

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,190 Points

I do not see any difference between those, either.

Thanks Michael