def myfun(x, y, z): if x == "hello": print "hello world" elif y == "goodbye": print "goodbye cruel world" else: print "oh no" myfun("apple", "orange", "pear") def primetest (y): x = y/2 while x > 1: if y % x == 0: print y, "has factor", x break x = x - 1 else: print y, "is prime" def paramtest (x=10, y=5): print x, y def min1(first, *args): res = first for arg in args: if arg < res: res = arg return res