/tags/ttn-post-libtool-1-4-3-upgrade/SWIG/Examples/python/multimap/runme.py
Python | 27 lines | 8 code | 14 blank | 5 comment | 0 complexity | 696a90fadfb737e041c39a2188585d24 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- # file: example.py
- import example
- # Call our gcd() function
- x = 42
- y = 105
- g = example.gcd(x,y)
- print "The gcd of %d and %d is %d" % (x,y,g)
- # Call the gcdmain() function
- example.gcdmain(["gcdmain","42","105"])
- # Call the count function
- print example.count("Hello World", "l")
- # Call the capitalize function
- print example.capitalize("hello world")