Skip to content

Instantly share code, notes, and snippets.

@chermehdi
Last active July 28, 2017 10:49
Show Gist options
  • Save chermehdi/04f0fdb6c942e94bb6011732e530040b to your computer and use it in GitHub Desktop.
Save chermehdi/04f0fdb6c942e94bb6011732e530040b to your computer and use it in GitHub Desktop.
@decorator(param=1)
def f(x):
""" Syntax Highlighting Demo
@param x Parameter"""
s = ("Test", 2+3, {'a': 'b'}, x) # Comment
print s[0].lower()
class Foo:
def __init__(self):
byte_string = 'newline:\n also newline:\x0a'
text_string = u"Cyrillic Я is \u042f. Oops: \u042g"
self.makeSense(whatever=1)
def makeSense(self, whatever):
self.sense = whatever
x = len('abc')
print(f.__doc__)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment