[Tutor] python debug

Alan Gauld alan.gauld at yahoo.co.uk
Mon Apr 26 09:16:16 EDT 2021


On 26/04/2021 12:47, Msd De wrote:
> Dear Sir,
> How to use nested def for two functions to integrate over a variable.
> The error displayed is
> TypeError: can't multiply sequence by non-int of type 'function

Show us the code causing the error and the full error message.
There is a lot of data in the traceback that the summary does not reveal.

Also what libraries are you using to "integrate"?

Finally OS and python version are usually helpful too.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list