Computer Science, asked by Anonymous, 5 months ago

Is it mandatory to include underscores in variables in Python? For example, can I put myVariable in place of my_variable?

Answers

Answered by anukrititiwari04
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