def maximumValue( x, y, z ):
maximum = x
if y > maximum:
maximum = y
if z > maximum:
maximum = z
return maximum
a = int( raw_input( "Enter first integer: " ) )
b = int( raw_input( "Enter second integer: " ) )
c = int( raw_input( "Enter third integer: " ) )
print "Maximum integer is:", maximumValue( a, b, c )
print # print new line
d = float( raw_input( "Enter first float: " ) )
e = float( raw_input( "Enter second float: " ) )
f = float( raw_input( "Enter third float: " ) )
print "Maximum float is: ", maximumValue( d, e, f )
print
g = raw_input( "Enter first string: " )
h = raw_input( "Enter second string: " )
i = raw_input( "Enter third string: " )
print "Maximum string is: ", maximumValue( g, h, i )
|