-
Posts
158 -
Joined
-
Last visited
nitric's Achievements
Baryon (4/13)
22
Reputation
-
i fixed it up, it has some more logic, i don't like final else's so it just has a elif for hte situation, it also handles the chance that the input might be the same:
#!/usr/bin/python
#Filename: func_doc.py
def printMax(x, y, z):
x=int(x) #convert input to integers, if possible
y=int(y)
z=int(z)
if z > x:
if z > y:
print(z, 'is maximum')
elif y > x:
if y > z:
print(y, 'is maximum')
elif x > y:
if x > z:
print(x, 'is maximum')
elif x == y == z:
print('all input equal')
printMax(input('Enter first integer:'), input('Enter second integer:'), input('Enter third integer:'))
-
all i'll say is
"people please drop some messages as you browse this chap's profile..He loves them(rather wants them)"
-
cold or fever? take rest instead of sitting on your favourite forum;)
Get well soon