i'm fairly new to python Language . I have two list like this: and i don't install the numpy package yet .
First_List = [10, 2, 5, 4, 100]
Second_List = [5, 10, 20, 20, 25]
How can I Divide each element in First_List
by elements in the Second_List
?
The output should be:
Result = [2, 0.2, 0.2, 4]
and i want a List in the output, and not an array ! how can i do this ? i try using this :
>>> First_List = [10, 2, 5, 4, 100]
>>> Second_List = [5, 10, 20, 20, 25]
>>> First_List/Second_List
but i got this error :
Traceback (most recent call last): File "", line 1, in First_List/Second_List TypeError: unsupported operand type(s) for /: 'list' and 'list'