Ask Question
11 February, 08:12

Which of the following is NOT true about a Python variable?

a) A Python variable must have a value

b) A Python variable can be deleted

c) The lifetime of a Python variable is the whole duration of a program execution.

d) A Python variable can have the value None.

+3
Answers (2)
  1. 11 February, 08:21
    0
    The lifetime of a Python variable is the whole duration of a program execution.
  2. 11 February, 08:45
    0
    Answer: c) The lifetime of a Python variable is the whole duration of a program execution.

    Explanation: Python variable are variables that are made up of alpha-numeric characters and underscores only. They also persist the case sensitivity. The life time of the variable is python is dependent upon scope of python variables.

    It can have value that should start with underscore or letter and no number. It can be deleted as per requirement. But the life of variable does not depends on programs execution duration. Thus, the only incorrect statement given in the question is option (c).
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Which of the following is NOT true about a Python variable? a) A Python variable must have a value b) A Python variable can be deleted c) ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers