strip
lstrip
rstrip
先頭の空白(または指定した文字)を除去します。
str.lstrip(chars?)
下記の値を入力するとサンプルに即時反映されます。
print
text = " hello world " print(text.lstrip()) # "hello world "