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

4 lines
71 B
Python
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
txt = "Some more text"
assert txt[-1] == "t"
assert txt[-4:] == "text"