Computer Science, asked by goyaljatin8667, 1 year ago

How does underscore "_" work in Python files?

Answers

Answered by herin83
3

The underscore prefix is meant as a hint to another programmer that a variable or method starting with a single underscore is intended for internal use. This convention is defined in PEP 8. This isn't enforced by Python. Python does not have strong distinctions between “private” and “public” variables like Java does.


herin83: ooh
kingofmyself: ohk
kingofmyself: ya
herin83: where
kingofmyself: bye bye
herin83: mm
kingofmyself: my uncle's home
kingofmyself: he is working there
herin83: ooh
herin83: mm
Similar questions