How to initialize variables with tuple values in Python

1 Answer

0 votes
t = ('python', 'java', 'php', "c")

(a, b, c, d) = t

print(a)
print(b)
print(c)
print(d)


'''
run:

python
java
php
c

'''

 



answered Oct 30, 2018 by avibootz
...