Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

What is wrong with the syntax?

Hi, I'm trying to run this piece of code:

from sage.all import * F = FiniteField(2**130-5) PR.<X> = PolynomialRing(F)

and I get this error:

PR.<x> = PolynomialRing(F)

File "<ipython-input-5-6d5ce5bc6dd0>", line 1 PR.<x> = PolynomialRing(F) ^ SyntaxError: invalid syntax

but when my teacher runs the exact same piece of code it works perfectly, what am I doing wrong?

What is wrong with the syntax?

Hi, I'm trying to run this piece of code:

 from sage.all import *
F = FiniteField(2**130-5)
PR.<X> = PolynomialRing(F)

and I get this error:

PR.<x>

PR.<X> = PolynomialRing(F)

PolynomialRing(F)

File "<ipython-input-5-6d5ce5bc6dd0>", line 1 PR.<x> PR.<X> = PolynomialRing(F) ^ SyntaxError: invalid syntax

syntax

but when my teacher runs the exact same piece of code code it works perfectly, what am I doing wrong?

What is wrong with the syntax?

Hi, I'm trying to run this piece of code:

from sage.all import *
F = FiniteField(2**130-5)
PR.<X> = PolynomialRing(F)

and I get this error:

PR.<X> = PolynomialRing(F)

 File "<ipython-input-5-6d5ce5bc6dd0>", line 1
    PR.<X> = PolynomialRing(F)
        ^
     SyntaxError: invalid syntax

but when my teacher runs the exact same piece of code it works perfectly, what am I doing wrong?