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:
commit
85318d70e0
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user