[Tutor] how to define a function with multple parameters

shellcom3 at juno.com shellcom3 at juno.com
Tue Sep 22 23:23:26 CEST 2009


I want to know how to use multiple parameters for 1 function


def display(message):
	print message

def rate_score():
    score = rate_score
    
    
if rate_score <= 999:
    print "that's nothing."
elif rate_score <= 10000:
    print "ok."
elif rate_score >= 10000:   
    print "great." 
 
		
#main		

display("Get  the meaning !")

raw_input("Please type in your score")
print "here's your score", rate_score
rate_score()
This is the outcome:

great.
Get the meaning
Please type in your score50
here's your score <function rate_score at 0x025610F0>


____________________________________________________________
Life Insurance Quotes
30 Seconds can save a lifetime. Get it done. Its never been easier.
http://thirdpartyoffers.juno.com/TGL2141/c?cp=mP3QZBgr1A9eUSmX6ls13gAAJ1CmHaRKpeX3s0f3JfT8odq8AAQAAAAFAAAAAK1A2j4AAAAAAAAAAAAAAAAACEcEAAAAAA==


More information about the Tutor mailing list