summaryrefslogtreecommitdiffhomepage
path: root/python.html.markdown
diff options
context:
space:
mode:
authorKuv <kuvam@users.noreply.github.com>2020-06-04 12:41:35 +0530
committerGitHub <noreply@github.com>2020-06-04 12:41:35 +0530
commitd56323d08ef43e1a38b4e75bec51c04ac342de1e (patch)
tree64c817a8c168acd80bdffaa6586f4a67faf3ad3b /python.html.markdown
parentbf39f18a78c6693109ccdde54f972dc555900b41 (diff)
Change string access example for clarity
'T' was apparently mistaken by someone for True, so this is a minor edit to use a different example to make sure that doesn't happen again.
Diffstat (limited to 'python.html.markdown')
-rw-r--r--python.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/python.html.markdown b/python.html.markdown
index 25798ade..ec89b53b 100644
--- a/python.html.markdown
+++ b/python.html.markdown
@@ -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