1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-01-17 21:49:22 +01:00

Merge pull request #3951 from kuvam/patch-1

[python/en] Change string access example for clarity
This commit is contained in:
Max Schumacher 2020-07-07 12:26:49 +02:00 committed by GitHub
commit 85318d70e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,7 +132,7 @@ b == a # => True, a's and b's objects are equal
"Hello " "world!" # => "Hello world!"
# A string can be treated like a list of characters
"This is a string"[0] # => 'T'
"Hello world!"[0] # => 'H'
# You can find the length of a string
len("This is a string") # => 16