1 | initial version |
Sage is trying to iterate over a nested list of solutions when there is only one. Remove the square brackets from your single variable to avoid this:
var('x0')
print solve([2*x0^2], x0)
print solve([2*x0^2], x0, solution_dict=True)
It's fine to use the brackets with multiple variables.