/trunk/Examples/python/multimap/runme.py
Python | 27 lines | 8 code | 14 blank | 5 comment | 0 complexity | 66d58a92cab58a2e314cba33298a3d80 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- # file: runme.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")