How to print a tuple inside a list in Python

1 Answer

0 votes
lst = ['a', 'c', 'd', 'f', ('v', 'w'), 'g', 'h', 'k']

print(lst[4])
print(lst[4][0])
print(lst[4][1])



'''
run:

('v', 'w')
v
w

'''

 



answered Feb 15, 2019 by avibootz
...