RosettaCodeData/Task/Binary-strings/Python/binary-strings-7.py
Ingy döt Net 86c034bb8b new files
2013-04-10 12:38:42 -07:00

3 lines
71 B
Python

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