Hitung zip bersama
# create a list of names
names = ['Messi', 'Mane']
# create a list of subjects
subjects = ['hat-trick', ' hat-trick']
# create a list of marks
marks = [99, 98]
# use enumerate() and zip() function
# to iterate the lists with t function
for i, t in enumerate(zip(names, subjects, marks)):
print(i, t)
#Ouput:
0 ('Messi', 'hat-trick', 99)
1 ('Mane', 'hat-trick', 98)
Coderunner