1array = ["Var1","Var2","Var3"]
2for i in range(len(array)):
3 print(array[i])
4
5#Output#
6#Var1
7#Var2
8#Var3
1colors = ["red", "green", "blue", "purple"]
2ratios = [0.2, 0.3, 0.1, 0.4]
3for color, ratio in zip(colors, ratios):
4 print("{}% {}".format(ratio * 100, color))
5