DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
Using iterable unpacking operator * with extend
list_1
=
[
1
,
'a'
]
list_2
=
[
1
,
2
,
3
]
list_2
.
extend
(
list_1
)
print
(
list_2
)
Source by www.programiz.com #
PREVIOUS
NEXT
Tagged:
#Using
#iterable
#unpacking
#operator
#extend
ADD COMMENT
Topic
COMMENT
Name
5+7 =
Submit