Ask Your Question

obvionaoe's profile - activity

2020-12-11 18:56:35 +0100 received badge  Student (source)
2020-12-11 18:18:54 +0100 asked a question 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?

2020-12-11 18:18:54 +0100 asked a question 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?