Computer Science, asked by manavcheeti1512, 6 months ago

· 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 rjsingh6705
10

Answer:

  1. only in modules hope it help you
Answered by ArunSivaPrakash
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