· 1. In Python, a variable must be declared before it is assigned a value
1. True
2. False
3. Only in functions
4. Only in modules
Answers
Answered by
10
Answer:
- only in modules hope it help you
Answered by
0
In Python, a variable must be declared before it is assigned a value and it is a false statement. (Option 2)
- Other programming languages require variable declaration.
- But Python does not require declaring variables explicitly before using them in the programming language.
- Thus it means the user can create a variable and start using it without any declaration.
- As Python is a dynamically-typed language, here the variables are created when the user first assigns a value to them.
- Moreover, the variables in the python programming languages do not need an explicit declaration as it reserves memory space.
- Therefore, the equal sign is used to assign values to Python variables.
#SPJ3
Similar questions