How to Append Data in list() without assign variable in Python Interpreter? I am trying to in this code
list([1, 2]).append(3)
Output is : None
and I get output Like this [1, 2, 3]
How to Append Data in list() without assign variable in Python Interpreter? I am trying to in this code
list([1, 2]).append(3)
Output is : None
and I get output Like this [1, 2, 3]