Is it mandatory to include underscores in variables in Python? For example, can I put myVariable in place of my_variable?
Answers
Answered by
1
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.
do follow me pls♡
Similar questions
English,
2 months ago
History,
2 months ago
Computer Science,
2 months ago
Science,
5 months ago
Social Sciences,
5 months ago
Math,
11 months ago
Environmental Sciences,
11 months ago