PageRenderTime 9ms CodeModel.GetById 2ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/python/multimap/runme.py

#
Python | 27 lines | 8 code | 14 blank | 5 comment | 0 complexity | 66d58a92cab58a2e314cba33298a3d80 MD5 | raw file
 1# file: runme.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