tests/string.py | raw changeset files shortlog |
1.1 --- a/tests/string.py Sun Jan 29 18:52:35 2017 +0100 1.2 +++ b/tests/string.py Sun Jan 29 22:56:43 2017 +0100 1.3 @@ -6,6 +6,10 @@ 1.4 print s[5:] # world! 1.5 print s[1:10:2] # el ol 1.6 print s[10:1:-2] # drwol 1.7 +print s[11:] # ! 1.8 +print s[:-11] # H 1.9 +print s[12:] # 1.10 +print s[:-12] # 1.11 print s.find("w") # 6 1.12 print s.find("w", 7) # -1 1.13 print s.find("w", 0, 6) # -1