ใช้ lstrip() ตัด whitespace, newline, tab นำหน้า
>> ' hello world!'.lstrip() 'hello world!'
ใช้ strip() ตัดทั้งนำและท้าย
>> ' hello world! '.strip() 'hello world!'
ใช้ lstrip() ตัด whitespace, newline, tab นำหน้า
>> ' hello world!'.lstrip() 'hello world!'
ใช้ strip() ตัดทั้งนำและท้าย
>> ' hello world! '.strip() 'hello world!'