What is wrong with the code?

def numbers():
while True:
number=int(raw_input(‘enter a number:’))
if number!=42:
for i in array:
print i

if __name__=='__main__':

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

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?

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.