python list add to start

35

ls = [1, 2, 3]
ls.insert(0, "new") # result -> ["new", 1, 2, 3]

Comments

Submit
0 Comments