debugger: some work on python

This commit is contained in:
hjk
2010-04-23 12:12:22 +02:00
parent 010b73615c
commit 400eecf4ef
9 changed files with 999 additions and 2 deletions

View File

@@ -0,0 +1,19 @@
def square(a):
x = a * a
return a
def cube(a):
x = square(a)
x = x * a
x = x + 1
x = x - 1
return x
def main():
print cube(3)
print cube(4)
print cube(5)
if __name__ == '__main__':
main()