Self-deception
View as PDF
Submit solution
Points:
15
Time limit:
0.6s
Memory limit:
64M
Author:
Problem type
Allowed languages
Python
is not feeling well today, and so has decided to create a painful challenge for you.
You are given the following class:
class Magic(object):
def method(self):
print 'Success' if self is None else 'Fail'
You are to somehow invoke the method and pass None as self. Your code will be run after the above block of code.
To make your life harder, decided that you should not be able to use import, or any other builtin for that matter. Obviously, you will be allowed to access None.
Input Specification
There will not be input.
Output Specification
Whatever Magic.method decides to output, when self is None.
Comments