35

私は2つのリストを持ってい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]

上記の変数のように、Pythonでそれらの比率を取得することは可能cですか?

私は試しa/bてみましたが、エラーが発生しました:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for /: 'list' and 'list'
4

6 に答える 6