Ask Your Question

obvionaoe's profile - activity

2022-01-10 01:22:00 +0200 received badge  Notable Question (source)
2022-01-10 01:22:00 +0200 received badge  Popular Question (source)
2020-12-11 18:56:35 +0200 received badge  Student (source)
2020-12-11 18:18:54 +0200 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 +0200 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?