Python Programming - Variables - Discussion

Discussion Forum : Variables - General Questions (Q.No. 24)
24.
Which of the following statements about Python constants is true?
They are variables whose values cannot be changed.
They are defined using the const keyword.
Python doesn't have a built-in constant type.
None of the above
Answer: Option
Explanation:
Python doesn't have a built-in constant type, unlike some other programming languages. Conventionally, constants in Python are defined using all uppercase letters to indicate that their values should not be changed, but this is only a convention and not enforced by the language.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.