APPLICATION OF SUPERVISED LEARNING
ARTIFICIAL INTELLIGENCE
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
What symbol do we use between words when a variable name is made up of more than one word?
|
Underscore ( ____ )
|
|
Space ( )
|
|
Hashtag (#)
|
|
Dash (-)
|
Explanation:
Detailed explanation-1: -A single leading underscore in front of a variable, a function, or a method name means that these objects are used internally. This is more of a syntax hint to the programmer and is not enforced by the Python interpreter which means that these objects can still be accessed in one way on another from another script.
Detailed explanation-2: -The underscore character, , also called a low line, or low dash, originally appeared on the typewriter so that underscores could be typed.
Detailed explanation-3: -The two standard conventions for overcoming this are to capitalize each word and cram them together (for example, LastName) or to separate each word with an underscore (for example, last name).
There is 1 question to complete.