Please help me on this simple question
x=1
if x["status"] == "Error":
     print "Fine"
elif x == 1:
     print "Good
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    TypeError: 'int' object has no attribute '__getitem__'
The x is a return value from a function which could be an integer or a dictionary. I don't want my IF condition to alert me if it is vice versa..
 
     
     
     
    