PageRenderTime 39ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

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