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
Daron Anderson
2,567 PointsWhy do you need parenthesis now for python print statments? It says in three it was switched to a function????
Yea I would like to know the professional way to write the statements or functions if thats what they are now?
1 Answer
Steven Parker
243,318 PointsNine years ago in Python version 2, "print" was a statement keyword. But in Python 3, it was changed to a function.
So like any function, when you invoke it, you put parentheses after its name, and then place all the arguments inside the parentheses, separated by commas.
All of the courses here are based on Python 3, so the examples shown will all use "print" consistently as a function.