Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

19 May, 2024: Line wrapping has been changed to be more consistent with Usenet standards.
 If you find that it is broken please let me know here rocksolid.nodes.help


devel / comp.lang.python / Re: Newline (NuBe Question)

SubjectAuthor
o Newline (NuBe Question)dn

1
Re: Newline (NuBe Question)

<mailman.252.1700040003.3828.python-list@python.org>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24714&group=comp.lang.python#24714

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!not-for-mail
From: PythonList@DancesWithMice.info (dn)
Newsgroups: comp.lang.python
Subject: Re: Newline (NuBe Question)
Date: Wed, 15 Nov 2023 22:19:41 +1300
Organization: DWM
Lines: 48
Message-ID: <mailman.252.1700040003.3828.python-list@python.org>
References: <65547270.3139.338043@RealGrizzlyAdams.vivaldi.net>
<8cde1523-57f8-4905-9d6e-bd4a0660d56c@DancesWithMice.info>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de 7PBZX5ViLv0skUU6qpaJLAi94SQgU6GR81TlZCBNBS0Q==
Cancel-Lock: sha1:EaLGN+P3Mam1+P7OwICfGzDTqUI= sha256:0OKSrlENq82BzyJSZca7hWPAYa6Na9NEMCsQPkCslSI=
Return-Path: <PythonList@DancesWithMice.info>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=danceswithmice.info header.i=@danceswithmice.info
header.b=cw8gDHTh; dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.011
X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; '=dn': 0.09; 'else:': 0.09;
'from:addr:danceswithmice.info': 0.09; 'from:addr:pythonlist':
0.09; 'received:192.168.1.64': 0.09; '"\\n"': 0.16; 'append':
0.16; 'grades': 0.16; 'message-id:@DancesWithMice.info': 0.16;
'newline': 0.16; 'print(': 0.16; 'received:cloud': 0.16;
'received:rangi.cloud': 0.16; 'subject:Newline': 0.16;
'together?': 0.16; 'wrote:': 0.16; 'code.': 0.17;
'subject:Question': 0.19; 'to:addr:python-list': 0.20; 'code':
0.23; '(and': 0.25; 'header:User-Agent:1': 0.30;
'header:Organization:1': 0.31; 'python-list': 0.32;
'received:192.168.1': 0.32; 'but': 0.32; 'there': 0.33; 'header
:In-Reply-To:1': 0.34; 'yes,': 0.35; 'really': 0.37;
'received:192.168': 0.37; 'students': 0.38; 'way': 0.38; 'could':
0.38; 'thanks': 0.38; 'want': 0.40; 'online': 0.63; 'cant': 0.69;
'within': 0.69; 'instead,': 0.70; 'name,': 0.75; 'students:':
0.84; 'adams': 0.91; 'removal': 0.91
DKIM-Filter: OpenDKIM Filter v2.11.0 vps.rangi.cloud 6CAE3725B
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=danceswithmice.info;
s=staff; t=1700039987;
bh=P5Tv7whrTL4STy5XNj4K8BlKEZaUd1JUDtcZoT80EgA=;
h=Date:From:Subject:To:References:In-Reply-To:From;
b=cw8gDHThvJ102zTkp1hmQEM4wZyrRVKm1EiSUSXTTMrawCVWShMjlmtWyy1TomX29
DfCosH4jWb33rYMnMtvVe436LEdqjVqn37mGjAfEFCJaQsa3qVNmVQ46ygA6zTKVgK
V6VNFZqwGVw9kRwhlj3CXhDgRdEjMEruw5eE8GZhuWuwW2Jr51ZBsgS5WPyS+uu9yh
Einyq/OlqAvaa2TteNo7FcryKrKMyhG0vF/lnAQsKOavqDrlKrgaPRcbPEIoP6uU4l
CLW1kZG2AJG79VunMNEHMivf3fZ84jAwQM1b4eoyeiSisHlmFElwhoca+jTMZeOXjg
MOEbWJgOJHqRw==
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
In-Reply-To: <65547270.3139.338043@RealGrizzlyAdams.vivaldi.net>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <8cde1523-57f8-4905-9d6e-bd4a0660d56c@DancesWithMice.info>
X-Mailman-Original-References: <65547270.3139.338043@RealGrizzlyAdams.vivaldi.net>
 by: dn - Wed, 15 Nov 2023 09:19 UTC

On 15/11/2023 20.25, Grizzy Adams via Python-list wrote:
> Hi & thanks for patience with what could be simple to you
>
> Have this (from an online "classes" tutorial)

There are lots of on-line classes!

> --- Start Code Snippit ---
>
> students = []
> grades = []
> for s in geographyClass:
> students.append(geographyStudent(s))
> for s in students:
> grades.append(s.school)
> grades.append(s.name)
> grades.append(s.finalGrade())
> if s.finalGrade()>82:
> grades.append("Pass")
> else:
> grades.append("Fail")
> print(grades)
>
> --- End Code Snippit ---
>
> I have extended (from tutorial) it a bit, I would really like to have a newline
>
> at end of each record, I have searched (and tested) but cant get "\n" to give a
>
> newline, I get "Mydata\n"
>
> Do I need to replace "append" with "print", or is there a way to get the
> newline in as I append to list?

Don't know how "Mydata..." results - where is it in the code.

What do you see when grades is printed?
Do you really want data-values all mashed together?

Yes, what changed after removal of all the .append()-s, and instead,
within the (second) for-loop print( school, name, ... ) was used?

Is it easier to go on from there?

--
Regards,
=dn


devel / comp.lang.python / Re: Newline (NuBe Question)

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor