[Tutor] I don’t know how to generate a number of data points from this part of code

Alan Gauld alan.gauld at yahoo.co.uk
Thu Feb 27 12:41:41 EST 2020


On 27/02/2020 05:09, SATYABRATA DATTA wrote:
> I have a package and this part is written to calculate the quantity called
> ‘action’ at a output temperature T. But now I need a set of ‘action’ at
> slightly different temperatures say T+1e-3,T+3*1e-3,T+4*1e-3… Etc.Since I
> am a beginner at python I can’t figure out where in. This definition I have
> to put a loop to print different values of action at slightly different
> temperatures. The part of code is attached as below

Unfortunately your code seems to have been mangled by the mail system so
the indentation is all messed up.

Can you repost the code (pasted into the message, not attached) ensuring
you post using Plain Text format and not HTML or rich text.

Thanks.
-- 
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