Mega Code Archive

 
Categories / Python / Function
 

Pass string value into a function

def welcome(title):     """Welcome the player and get his/her name."""     print "\t\tWelcome to Demo 2s!\n"     print "\t\t", title, "\n"   welcome("Joe")