summaryrefslogtreecommitdiffhomepage
path: root/python3.html.markdown
diff options
context:
space:
mode:
authorGeoff Liu <cangming.liu@gmail.com>2015-04-22 15:45:21 -0600
committerGeoff Liu <cangming.liu@gmail.com>2015-04-22 15:45:21 -0600
commit04eed19763b7aad50318212f96e98860a38735af (patch)
tree6b23735492b183d6d4f5ca807ca314a5a2c2a482 /python3.html.markdown
parent2ae6322bf6a889093086661162fa92f7c306efd7 (diff)
parentd20eb1fb94c819283e610bbd9f1cf3cea834da46 (diff)
Merge pull request #1050 from srirams6/master
[python3/en] Adding strings without + added.
Diffstat (limited to 'python3.html.markdown')
-rw-r--r--python3.html.markdown2
1 files changed, 2 insertions, 0 deletions
diff --git a/python3.html.markdown b/python3.html.markdown
index 56126ad3..6c5e1059 100644
--- a/python3.html.markdown
+++ b/python3.html.markdown
@@ -101,6 +101,8 @@ False or True #=> True
# Strings can be added too! But try not to do this.
"Hello " + "world!" # => "Hello world!"
+# Strings can be added without using '+'
+"Hello " "world!" # => "Hello world!"
# A string can be treated like a list of characters
"This is a string"[0] # => 'T'