How to find the size of a tuple in Python

1 Answer

0 votes
tpl = ('python', 'java', 2022, 'c++', 3.14)

size = len(tpl)

print(size)



'''
run:

5

'''

 



answered Nov 26, 2022 by avibootz
...