Program - Unpacking of iterables


Topic: Program - Unpacking of iterables

Solution

val1, *vals = [1, 2, 3, 4, 5]
print('val1:', val1)
print('vals:', vals)



List all Python Programs