[Tutor] saving output data in a file
Alan Gauld
alan.gauld at btinternet.com
Fri Dec 4 11:09:33 CET 2009
"Senthil Kumaran" <orsenthil at gmail.com> wrote
> Instead of
>
> print '(Pole*RPM) product for various values of conductors/slot is: \n',
> polerpm
>
> You will do
>
> msg = '(Pole*RPM) product for various values of conductors/slot is: \n',
> polerpm
You would need to do a bit more since polerpm will not automatically be
appended to the string as it would in a print. So you probably want to use
a format string or at least convert polerpm to a string using str()
--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/
More information about the Tutor
mailing list