Skip to content

Instantly share code, notes, and snippets.

View fleskesvor's full-sized avatar

Eivind fleskesvor

View GitHub Profile
#!/usr/bin/python
def hello():
print "Hello, World!"
def main():
my_list = [("This is what I want to check for", hello),
("But it will also validate built-ins", isinstance),
["Let's use an array for good measure", lambda x: x]]
# my_list = ["Must be 'list' or 'tuple', so this raises an error"]