First day beginner to python, add to counter after nested loop
Dave Angel
davea at davea.name
Tue Oct 29 21:44:12 EDT 2013
On 29/10/2013 16:11, jonas.thornvall at gmail.com wrote:
> Den tisdagen den 29:e oktober 2013 kl. 21:08:39 UTC+1 skrev jonas.t... at gmail.com:
>> Den tisdagen den 29:e oktober 2013 kl. 20:24:57 UTC+1 skrev Dave Angel:
>
> They could had used print and prinln from basic? I do not want new line everytime i write out some terms.
That's ironic, when the bulk of your message is quad-spaced --- three
blank lines between every useful line. Please reread:
http://wiki.python.org/moin/GoogleGroupsPython
> And i do not like it add extra space after each print of variable
print(factor,"^2") writes out 12 ^2 and i do not think there is any space after the factor?
Look up the print function, and see all the keyword options. Two in
particular:
sep=
end=
would address both your concerns.
--
DaveA
More information about the Python-list
mailing list