Python: Join String
Adjacent Strings Automatically Joins
# adjacent string auto joins x = "some" "thing" print(x) # "something"
The strings can be quoted in different ways, or with different prefix.
# adjacent strings auto joins xx = "a" 'b' r"c" """some""" print(xx) # abcsome
Join String (Operator)
str1 + str2
-
xx = "aa" + "bb" print(xx) # "aabb"
Python, String
- Python: Quote String
- Python: Triple Quote String
- Python: String Escape Sequence
- Python: Unicode Escape Sequence
- Python: String Prefix Character (u f r b)
- Python: Raw String (r-prefix)
- Python: f-String (Format, Template)
- Python: Print
- Python: Join String
- Python: Format String (Convert to String)
- Python: String Operations and Methods
- Python: Search Substring
- Python: Split String
- Python: String, Check Case, Char Class
- Python: Letter Case Conversion
- Python: Unicode 🐍
- Python 2: Unicode Tutorial