diff options
author | Sriram Sundarraj <sriram.s.1994@gmail.com> | 2015-04-23 01:48:18 +0530 |
---|---|---|
committer | Sriram Sundarraj <sriram.s.1994@gmail.com> | 2015-04-23 01:48:18 +0530 |
commit | d20eb1fb94c819283e610bbd9f1cf3cea834da46 (patch) | |
tree | 6b23735492b183d6d4f5ca807ca314a5a2c2a482 | |
parent | 2ad26dd44a9129aade696ac64d9d6ae1a1f6a98b (diff) |
Adding strings without + added.
-rw-r--r-- | python3.html.markdown | 2 |
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' |