Gift
asked

Expert
Sudip Bhandari answered
Fixed values are constants that cannot be changed after they are created, and in the context of strings, they are specific sequences of characters.
For example, when you define a string with either "Python"
or 'Python'
, that exact sequence of characters is what's stored. These strings are fixed values because if you tried to change them—say, by altering the capitalization or adding extra spaces—you would end up with something entirely different.
For instance, "python"
(with lowercase 'p'
) or "Python "
(with an extra space after the text and before "
) are not the same as "Python"
.
Hope this helps! If you have any more questions, feel free to ask.
Python
This question was asked as part of the Learn Python Basics course.