Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def foobar(a, b):
- if a == b:
- a = a+1
- elif a < b:
- b = b-1
- if b > a: a = a-1
- # end if
- else:
- print 'oops!'
- # end if
- # end def foobar
- def foobar(a, b):
- if a == b:
- a = a+1
- elif a < b:
- b = b-1
- if b > a: a = a-1
- else:
- print 'oops!'
- class MyClass(object): #{
- def myfunction(self, arg1, arg2): #{
- for i in range(arg1): #{
- print i
- #}
- #}
- #}
- fi = endclass = enddef = endclass = done = None
- class MyClass(object):
- def myfunction(self, arg1, arg2):
- for i in range(arg1): #do
- if i > 5: #then
- print i
- fi
- done
- enddef
- endclass
- class MyClass(object): #{
- def myfunction(self, arg1, arg2): #{
- for i in range(arg1): #{
- print i
- # whoops, forgot to close that bracket!
- #}
- #}
- fi = od = yrt = end = lambda object: None;
- class MyClass(object):
- def myfunction(self, arg1, arg2):
- for i in range(arg1) :# do
- if i > 5 :# then
- print i
- fi
- od # or end(i) #
- end(myfunction)
- end(MyClass)
Add Comment
Please, Sign In to add comment