-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]

Member CT
  • 3
  • 2

1 Answers1

-1

You can just type [1, 2, 3] or [1, 2] + [3]

Daniel
  • 487
  • 4
  • 11