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 *
list_1 = [1, 'a'] list_2 = range(2, 4) list_joined = [*list_1, *list_2] print(list_joined)
Source by www.programiz.com #
PREVIOUS
NEXT
Tagged:
#Using
#iterable
#unpacking
#operator
ADD COMMENT
Topic
COMMENT
Name
8+2 =
Submit