Keyword arguments example. : Function as Parameters : Buildin Function PYTHON examples


PYTHON examples » Buildin Function » Function as Parameters »

 

Keyword arguments example.


Keyword arguments example.




def generateWebsitename, url = "www.navioo.com",Flash = "no", CGI = "yes" ):
   print "Generating site requested by", name, "using url", url

   if Flash == "yes":
      print "Flash is enabled"

   if CGI == "yes":
      print "CGI scripts are enabledn"   
   print

generateWebsite"navioo" )

generateWebsite"navioo", Flash = "yes",
                  url = "www.navioo.com" )

generateWebsiteCGI = "no", name = "Prentice Hall" )

           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo Buildin Function
» Function as Parameters