On Tue, Feb 9, 2010 at 11:09 AM, Ken G. <beach...@insightbb.com> wrote:
>
> Kent Johnson wrote:
>
> On Tue, Feb 9, 2010 at 10:28 AM, Ken G. <beach...@insightbb.com> wrote:
>
>
> I printed out some random numbers to a datafile and use 'print mylist' and
> they came out like this:
>
> ['102\n', '231\n', '463\n', '487\n', '555\n', '961\n']
>
>
> How are you generating this list? You should be able to create it
> without the \n. That would be better than stripping them out.
>
>
> I inputting some random numbers into a database and then created a list
> and appended the list as it read the database.

If you show the code for this perhaps we can figure out where the
newlines are coming from.

Kent
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to