How to create nested tuple a tuple inside another tuple in Python

1 Answer

0 votes
tpls = (("python", "c", 847.938), ("c++", "c#", 2020.72), ("java", "go", 489287))

for t in tpls:
    print(t)
    
    

'''
run:

('python', 'c', 847.938)
('c++', 'c#', 2020.72)
('java', 'go', 489287)

'''

 



answered Oct 3, 2021 by avibootz
...