mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-01 00:43:00 +03:00
Merge pull request #1048 from srirams6/master
[python/en] Adding strings without + added.
This commit is contained in:
commit
2ae6322bf6
@ -101,6 +101,8 @@ not False # => True
|
||||
|
||||
# Strings can be added too!
|
||||
"Hello " + "world!" # => "Hello world!"
|
||||
# Strings can be added without using '+'
|
||||
"Hello " "world!" # => "Hello world!"
|
||||
|
||||
# ... or multiplied
|
||||
"Hello" * 3 # => "HelloHelloHello"
|
||||
|
Loading…
Reference in New Issue
Block a user