[Tutor] Apologies
Kermit Rose
kermit at polaris.net
Wed Jun 7 04:11:18 CEST 2006
I%60
should have been
I%12
My previous request has been solved.
From: Kermit Rose
Date: 06/06/06 22:05:17
To: tutor at python.org
Subject: end of line character seems to be invisible. why?
I ran the program
# inp = open("CMT_MCAID", "rb")
# out = open("mcaid.txt", "w")
# for I in range(1,1000):
# if I I%60=== 0:
On reflection, I realized that more than one character is being written with
each character input,
so I should have divided 60 by the number of characters output per character
input.
Thanks for all your assistance.
Kermit < kermit at Polaris.net >
More information about the Tutor
mailing list