[Tutor] print issue
Cameron Simpson
cs at cskk.id.au
Tue Oct 1 18:37:04 EDT 2019
On 01Oct2019 13:37, ose micah <osaosemwe at yahoo.com> wrote:
> Thank you for the suggestion. I think its best I attach the code as used from file here.I have print issue with the final print format:What I did is open the file that contains subnets, read each line from this file and make use of each subnet to append a yaml formatted line in the samplefile.txt. Here is my desired output in the samplefile.txt:
Mike,
1: Please DO NOT CC the list owner and bounce addresses. Send to the
list itself (tutor at python.org).
2: As mentioned earlier, this is a text only list. That means no
attachments.
Instead, inline your text in the message (as you did originally, but
with a little more care: blank lines between prose and code/output, and
indent the code/output).
Your attachments are images. These have various downsides:
- the list software drops them completely; I got to see them only
because of the personal copy you sent me.
- we can't cut/paste text from images
- the visually impaired cannot even view them, or have trouble viewing
them depending on the degree of impairment; inline text works for
everyone
Please reply to this, sending to the list, with inline text.
One thing I omitted from my previous response was:
Write a tiny tiny script containing just the print function with
hardwired values. Fiddle with that until you get the output you want.
Then put that version back into your main programme.
Cheers,
Cameron Simpson <cs at cskk.id.au>
More information about the Tutor
mailing list