What is wrong with the code?

def numbers():
array=[]
while True:
number=int(raw_input(‘enter a number:’))
if number!=42:
array.append(number)
else:
break
for i in array:
print i

if __name__=='__main__':
	numbers() 

And the question link is: http://www.codechef.com/problems/TEST

You do not have to print Enter a number

@bugkiller already answered your question. I’ll just add that you should read the tutorials/editorials whose links are given on the problem page. I started using online judges a little while ago and I think you did too. The tutorials/editorials helped me a lot in getting started. They’ll help you too.

Use the code tags. Otherwise it is not possible to read code especially Python which is dependent on indentation. Also what kind of error occurred?