Files
qt-creator/tests/manual/gdbdebugger/python/math.py

26 lines
375 B
Python
Raw Normal View History

2010-04-23 12:12:22 +02:00
def square(a):
x = a * a
return a
def cube(a):
l = [1, 2, 4]
2010-04-28 11:18:54 +02:00
t = (1, 2, 3)
d = {1: 'one', 2: 'two', 'three': 3}
s = u'unixcode'
x = xrange(1, 10)
b = buffer("xxx")
2010-04-23 12:12:22 +02:00
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()