O'Reilly logo
  • Longxiang Lyu thinks this is interesting:

2-7. Stripping Names:

From

Cover of Python Crash Course

Note

name = "\tDonald Trump\n\t"
print(name)
print(name.lstrip())
print(name.rstrip())
print(name.strip())