[Solved] Create class in python [closed]


divided_list = [float(x)/2 for x in foo]

This divides each value in a list by 2.

def divide_list(foo, divisor):
    return [float(x)/divisor for x in foo]

Where divisor is the number you want to divide by.

5

solved Create class in python [closed]