Ask Your Question

barryb31's profile - activity

2021-01-31 08:27:59 +0200 commented answer Turning a txt. file into a list in sagemath/python

How do you strip quotes from a list of pairs of the following kind: e.g.: '[(1, (4) * x^2 * (69x^4 - 8x^2 - 48)), (2, (2048/27) * (x - 2) * (x + 2) * x^3 * (27x^4 - 8x^2 - 16)), (3, (2) * (x - 2) * (x + 2) * x^4 * (5601x^6 - 38732x^4 + 11312x^2 + 19392)), (4, (16384/3375) * (x - 2) * (x + 2) * x^5 * (10125x^8 - 155904x^6 + 650144x^4 - 190976x^2 - 286464)), (5, (8/729) * (x - 2) * (x + 2) * x^6 * (16769187x^10 - 419821596x^8 + 3737957344x^6 - 12223806336x^4 + 3651604224x^2 + 4868805632))]'