/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
1# file: example.py
2
3import example
4
5# Call our gcd() function
6
7x = 42
8y = 105
9g = example.gcd(x,y)
10print "The gcd of %d and %d is %d" % (x,y,g)
11
12# Call the gcdmain() function
13example.gcdmain(["gcdmain","42","105"])
14
15# Call the count function
16print example.count("Hello World", "l")
17
18# Call the capitalize function
19
20print example.capitalize("hello world")
21
22
23
24
25
26
27