Can I extend list in Python with prepend elements instead of append?
Can I extend list in Python with prepend elements instead of append? Question: I can perform a = [1,2,3] b = [4,5,6] a.extend(b) # a is now [1,2,3,4,5,6] Is there way to perform an action for extending list and adding new items to the beginning of the list? Like this a = [1,2,3] b = …