Reading Sequences in Python : I'm new to python and I'm trying to help out a friend with her code. The code receives input from a user until the input is 0, using a while loop. I'm not used to the python syntax, so I'm a little confused as to how to receive user input. I don't know what I'm doing wrong. Here's my code:

    sum = 0
    number = input()
    while number != 0:
       number = input()
       sum += number
       if user == 0:
         break
    