Jump to content

nitric

Senior Members
  • Posts

    158
  • Joined

  • Last visited

Status Updates posted by nitric

  1. ha ha, back i should say

  2. 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:'))

  3. hi, be my friend :P

  4. rofl, bring in those messages

  5. cold, its some stomach thing going around my school

  6. im sick right now though

  7. fine, i know all the stuff

  8. nitric

    join my group, NOW

    its Chemists, Home and Profesional

  9. fine

    how 'bout you

  10. why dont i get messages

  11. your awesome :P, thanks for accepting

  12. nitric

    seems like your on a road to an expert( not yet though :P ) and greatness( :rolleyes::cool::D;) )

  13. congrats at joining

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.