I have a file ~/foo.py 
from sage.all import *
def my_func(n):
    var('t') 
    f(t) = t**n 
    return f(t)
But issuing sage: import foo raises the error SyntaxError: can't assign to function call
What am I doing wrong?
|   | 1 |  initial version  | 
I have a file ~/foo.py 
from sage.all import *
def my_func(n):
    var('t') 
    f(t) = t**n 
    return f(t)
But issuing sage: import foo raises the error SyntaxError: can't assign to function call
What am I doing wrong?
 Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.
 
                
                Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.