assign elements of list to variables python

Solutions on MaxInterview for assign elements of list to variables python by the best coders in the world

showing results for - "assign elements of list to variables python"
Elyne
02 Nov 2019
1l = [1, 2, 3, 4]
2
3num1, num2, num3, num4 = l
4
5'''
6printing the variables will return
7
8num1: 1
9num2: 2
10num3: 3
11num4: 4
12'''