list unpacking

Run Settings
LanguagePython
Language Version
Run Command
# we can use join to convert a list of objects into a string. So we can later work with these strings. joining = ' '.join(["Hello","I","am","Gay"]) print(joining) # Now the list is a string. # We can also do list unpacking using python - I already covered this in tuples(tuple unpacking). a,b,c, *other, d = [1,2,3,4,5,6,7,8,9] # we can also just type ints no need to have em inside a list. print(a) print(b) print(c) print(other) #This prints the other values that are left out inside the list. print(d)
Editor Settings
Theme
Key bindings
Full width
Lines