I have a lists A=[1, 1, 1, 1]
and B=[2, 3, 4, 5]
, and I want to define C=[50%, 33%, 25%, 20%]
(i.e. I'm dividing each element of A by the corresponding element of B and then multiplying each by 100 to get the percentage).
When trying to find out how to do the division I came across: Dividing elements of one list by elements of another but this case is much more complex than what I need so I got really confused.
Thanks in advance!