Article From:https://www.cnblogs.com/sea-stream/p/9971278.html

 

def multiply_list(items):  
    tot = 1  
    for x in items:  
        tot *= x  
    return tot  
print(multiply_list([1,2,-8]))

  

Leave a Reply

Your email address will not be published. Required fields are marked *