Created
January 30, 2015 17:22
-
-
Save averrin/1f09e1148bdd33d1560b to your computer and use it in GitHub Desktop.
Magic encoder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a = ["adsfgsdfg", "q45r3465365", "aer2r32q", "asdasdasd", "6666"] | |
def encode(s): | |
class Magic(object): | |
def __eq__(self, other): | |
return True | |
s = Magic() | |
return s | |
print(encode(a[0]) == a[1]) | |
print(encode(a[1]) == a[2]) | |
print(encode(a[3]) == a[4]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment