summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/string_strip.py
blob: 8e03eff93af221e0ab6e305016ee41562b19d6b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
print("".strip())
print(" \t\n\r\v\f".strip())
print(" T E S T".strip())
print("abcabc".strip("ce"))
print("aaa".strip("b"))
print("abc  efg ".strip("g a"))

print('   spacious   '.lstrip())
print('www.example.com'.lstrip('cmowz.'))

print('   spacious   '.rstrip())
print('mississippi'.rstrip('ipz'))