|
Replies:
1
-
Pages:
1
-
Last Post:
Nov 20, 2011 9:49 PM
by: carter.sande
|
|
|
Posts:
27
From:
I live near Portland but in Washington.
Registered:
9/18/10
|
|
|
|
Biggest number
Posted:
Nov 20, 2011 5:57 PM
|
|
I'm making a quiz in python, and i need to figure out what the largest of the 5 variables are. Any suggestions?
|
|
Posts:
33
From:
Ottawa, Canada
Registered:
1/27/09
|
|
|
|
Re: Biggest number
Posted:
Nov 20, 2011 9:49 PM
in response to:
Bennjamin
|
|
You could use the max function, like this:
print max(var1, var2, var3, var4, var5)
It will tell you which number is the biggest (or max) of a set of numbers.
|
|
|
Legend
|
|
Gold: 300
+
pts
|
|
Silver: 100
- 299
pts
|
|
Bronze: 25
- 99
pts
|
|
Manning Author
|
|
Manning Staff
|
|