I have two lists a and b:
a
b
a = [3, 6, 8, 65, 3] b = [34, 2, 5, 3, 5] c gets [3/34, 6/2, 8/5, 65/3, 3/5]
You can use the following code:
a = [3, 6, 8, 65, 3] b = [34, 2, 5, 3, 5] c = [float(x)/y for x,y in zip(a,b)] print(c)