This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Grupobetatesting
Recipients Grupobetatesting, ned.deily, terry.reedy
Date 2013-10-10.03:12:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1381374764.08.0.71235045371.issue19150@psf.upfronthosting.co.za>
In-reply-to
Content
Thank you very much for your help.

Specification of error :

In python 2.7.3 for Ubuntu 12.04 32-bit

It creates a program with the following line of code :


Python is a programming language That lets you work more quickly and integrate your systems more effectively.
You can learn to use Python and see almost immediate gains in productivity and lower maintenance costs.


import math

elCociente def (x, y):
    ratio = x / y
    return ratio

theRemainder def (x, y):
    remainder = x% y
    return other

laRaiz def ( x ) :
    root = math.sqrt ( x )
    return root

LaSegRaiz def (y):
    segraiz = math.sqrt ( y)
    return segraiz




def main ( ) :

    x = input (" Enter a number: " )
    y = input (" Enter a second number :")


    print " the quotient of dividing " , x , "with" , and , " is" , elCociente ( x , y)
    print " the remainder of dividing " , x , " for " and , " is" , theRemainder ( x , y)
    print " the root of " , x , " is" , laRaiz ( x )
    print " the root ," and , " is" , LaSegRaiz ( y)

Where the lines 1 and 2 are not discussed , when compiling the program ( f5 ) warns us to a syntax error , open the sheel , we force the compilation typing the main and opens another blank shell . not saying that is the error line .

If commented lines 1 and 2 and compile again ( f5 ) jump several errors in the shell which can not close and forces us to have to kill python process .

I hope I have been much clearer .

thanks


Corrected with cometary Program

# Python is a programming language That lets you work more quickly and integrate your systems more effectively.
# You can learn to use Python and see almost immediate gains in productivity and lower maintenance costs.


import math

elCociente def (x, y):
    ratio = x / y
    return ratio

theRemainder def (x, y):
    remainder = x% y
    return other

laRaiz def ( x ) :
    root = math.sqrt ( x )
    return root

LaSegRaiz def (y):
    segraiz = math.sqrt ( y)
    return segraiz




def main ( ) :

    x = input (" Enter a number: " )
    y = input (" Enter a second number :")


    print " the quotient of dividing " , x , "with" , and , " is" , elCociente ( x , y)
    print " the remainder of dividing " , x , " for " and , " is" , theRemainder ( x , y)
    print " the root of " , x , " is" , laRaiz ( x )
    print " the root ," and , " is" , LaSegRaiz ( y)
History
Date User Action Args
2013-10-10 03:12:44Grupobetatestingsetrecipients: + Grupobetatesting, terry.reedy, ned.deily
2013-10-10 03:12:44Grupobetatestingsetmessageid: <1381374764.08.0.71235045371.issue19150@psf.upfronthosting.co.za>
2013-10-10 03:12:43Grupobetatestinglinkissue19150 messages
2013-10-10 03:12:43Grupobetatestingcreate