Fix Python – Append integer to beginning of list in Python [duplicate]
This question already has answers here:
How do I prepend to a short python list?
(7 answers)
Closed 2 years ago.
How do I prepend an integer to the beginning of a list?
[1, 2, 3] ⟶ [42, 1, 2, 3]
….