Return list where each element is product of all others. Example: [1,2,3,4] => [24,12,8,6]. Do not use division.
Implement this function:
def product_except(lst: list) -> list:
Write the function only — the arguments are read for you and the return value is printed automatically.
Arguments arrive as one Python literal per line, in this order: lst.
Input
[1, 2, 3, 4]
Output
[24, 12, 8, 6]