
December 5th, 2012, 11:27 PM
|
|
Registered User
|
|
Join Date: Dec 2012
Posts: 8
Time spent in forums: 1 h 19 m 4 sec
Reputation Power: 0
|
|
|
Mystery Code
Code:
def mystery(x): a = [0, 4, 0, 3, 2] while x > 0: x = a[x]
return "Done"
What is the value which cause the program to run forever?
I do not know the answer please help me. An explanation is GREATLY appreciated. I need a explanation for this. 
|