RosettaCodeData/Task/Binary-strings/Python/binary-strings-7.py
2023-07-01 13:44:08 -04:00

3 lines
71 B
Python

txt = "Some more text"
assert txt[-1] == "t"
assert txt[-4:] == "text"