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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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'''