python - SyntaxError: "can't assign to function call" -
this line in program:
invest(initial_amount,top_company(5,year,year+1)) = subsequent_amount
causes me error:
syntaxerror: can't assign function call
how fix , make use of value of function call?
syntactically, line makes no sense:
invest(initial_amount,top_company(5,year,year+1)) = subsequent_amount
you attempting assign value function call, error says. trying accomplish? if you're trying set subsequent_amount
value of function call, switch order:
subsequent_amount = invest(initial_amount,top_company(5,year,year+1))
Comments
Post a Comment