破壊的メソッドは戻り値に None を返却する
list.appendメソッドの実行例
1 2 3 4 5 6 7 8 9 |
list_object = [2, 3, 5] print(list_object) # => [2, 3, 5] returned_object = list_object.append(7) print(list_object) # => [2, 3, 5, 7] print(returned_object) # => None |