-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
Closed as not planned
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir
Description
This page
https://docs.python.org/3/tutorial/introduction.html
states: "Python strings cannot be changed — they are immutable".
As it is written, it is a wrong statement. This example proves it:
>>> myString = 'Python3'
>>> myString
'Python3'
>>> myString = 'Perl'
>>> myString
'Perl'
>>>
Maybe what the documentation intended to say is that we cannot change parts of strings using indexes.
Metadata
Metadata
Assignees
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir
Projects
Status
Todo