I need to write a function that if a number is in the list, then the function will return a list of positions of that number in the list. If the number is not in the list, it will return 0.
Here is the code that I have written.
def find_member_positions(number,list_of_numbers):
    number = int
    list_of_numbers = []
    
    for number in list_of_numbers:
        position = list_of_numbers.index(number)
    return position
 
     
    