mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-22 21:52:31 +03:00
[python/en] Adding strings without + added.
This commit is contained in:
parent
9dd6e173f7
commit
2ad26dd44a
@ -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