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

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -