QUESTION IMAGE
Question
question 1
which of the following variable names is not valid in python?
- _my_var
- myvar2
- 2myvar
- my_var_
question 2
what data type is the value true in python?
- binary
- bool
- str
- int
Response
Question 1
Brief Explanations
In Python, variable names cannot start with a number. Let's analyze each option:
_my_var: Starts with an underscore, valid.myVar2: Starts with a letter, valid.2myVar: Starts with a number, invalid.my_var_: Starts with a letter and uses underscores, valid.
Brief Explanations
In Python, the value True (and False) belongs to the boolean data type, which is represented as bool. The other options: binary is not a built - in Python data type, str is for strings, and int is for integers.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
C. 2myVar