This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mult_list = [126, 503] | |
test_list = [(1, 3, 5), (1, 4, 26)] | |
print("The original multiply list : " + str(mult_list)) | |
# printing original list | |
print("The original list : " + str(test_list)) | |
res = [] | |
for i in range(len(mult_list)): | |
res.append(tuple(ti/mult_list[i] for ti in test_list[i])) | |
print(res) |