Ask Question
31 October, 07: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.

+2
Answers (2)
  1. 31 October, 07:21
    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).
  2. 31 October, 07:42
    0
    The lifetime of a Python variable is the whole duration of a program execution.
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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers