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 trialRiya Chatterjee
7,582 PointsWhy is it "_score_set"?
Why is there a single underscore before score set in scoresheets.py? I don't understand if that's a type of special convention, or why it's necessary here.
1 Answer
Robbin Khant Min
17,904 PointsThe underscore prefix simply means that it is for internal use . It is the convention defined in PEP 8 but not necessarily enforced by Python . Unlike in java , python does not have strong hints between private and public variables . So a single underscore is used to make a distinction that * the variable is private(internal use only).*