RosettaCodeData/Task/Binary-strings/Python/binary-strings-5.py

4 lines
88 B
Python

txt = "Some text"
txt += '\x07'
# txt refers now to a new string having "Some text\x07"