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)Pierre Fortin

1
Re: Newline (NuBe Question)

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.neodome.net!fu-berlin.de!uni-berlin.de!not-for-mail
From: pf@pfortin.com (Pierre Fortin)
Newsgroups: comp.lang.python
Subject: Re: Newline (NuBe Question)
Date: Wed, 15 Nov 2023 12:19:16 -0500
Lines: 27
Message-ID: <mailman.260.1700069128.3828.python-list@python.org>
References: <65547270.3139.338043@RealGrizzlyAdams.vivaldi.net>
<a0874fc0-c533-4098-b00f-7d0e014ed16a@tompassin.net>
<6554F6FD.23324.1B219E@RealGrizzlyAdams.vivaldi.net>
<20231115121916.610cbf32@pfortin.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de qYo6NB01tzMNDoNfhPD0KQ7lcZOiDE9nfXYr878SOO1Q==
Cancel-Lock: sha1:3mdhLeQBmhnsBi0UG9n9NZs+cWQ= sha256:XTkQ8jfvZK6ep3Bs3whQh7TUfgstYYrZ31oTgZD88mg=
Return-Path: <pf@pfortin.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="1024-bit key; unprotected key"
header.d=pfortin.com header.i=@pfortin.com header.b=HJTxaOwZ;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.123
X-Spam-Level: *
X-Spam-Evidence: '*H*': 0.83; '*S*': 0.07; 'students.': 0.03; 'this:':
0.03; '2023': 0.07; '"list': 0.16; 'print(': 0.16;
'subject:Newline': 0.16; 'wrote:': 0.16; 'subject:Question': 0.19;
'to:addr:python-list': 0.20; 'cc:2**0': 0.25; 'python-list': 0.32;
'header:In-Reply-To:1': 0.34; 'students': 0.38; 'list': 0.39;
'wed,': 0.39; 'want': 0.40; 'skip:h 10': 0.61; 'forward': 0.62;
'between': 0.63; 'your': 0.64; 'look': 0.65; 'right': 0.68;
'direction:': 0.84; 'students:': 0.84; 'adams': 0.91; 'headed':
0.91
In-Reply-To: <6554F6FD.23324.1B219E@RealGrizzlyAdams.vivaldi.net>
X-Mailer: Claws Mail 4.1.1git67 (GTK 3.24.38; x86_64-pc-linux-gnu)
X-Lux-Comment: Message 3AFHJHCa928551 sent by user #22429
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pfortin.com;
h=date:from:to:cc:subject:message-id:in-reply-to:references:mime-version:content-type:content-transfer-encoding;
s=dkim; bh=KBE+ygJi6d7nhzydwiG9UMWR1KejpjRkqKGg2kotWg4=;
b=HJTxaOwZcCbV3IgAnw4s3JoQlCS9yYU8fCobqOATyY7+Z3XowCSTCqxag/+165r0Ux9/s30KExbcfMyFxh4h39KOon8cRPRzj8KzETq4L71qIh98/QpLUvkTG1U/PUJA12BiZ/5qlalRYhAWW3ixe92PCukVdW1cD8OjHRYKDqw=
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: <20231115121916.610cbf32@pfortin.com>
X-Mailman-Original-References: <65547270.3139.338043@RealGrizzlyAdams.vivaldi.net>
<a0874fc0-c533-4098-b00f-7d0e014ed16a@tompassin.net>
<6554F6FD.23324.1B219E@RealGrizzlyAdams.vivaldi.net>
 by: Pierre Fortin - Wed, 15 Nov 2023 17:19 UTC

On Wed, 15 Nov 2023 16:51:09 -0000 Grizzy Adams via Python-list wrote:

I don't give solutions; just a nudge... you appear not to fully grok
"list"; your list is ONE list with no delineation between students. You
want a "list of lists"...

>['Example High', 'Mary', 89.6, 'Pass', 'Example High', 'Matthew', 76.5, 'Fail', 'Example High', 'Marie', 80.4, 'Fail', 'Example High', 'Manuel', 79.6, 'Fail', 'Example High', 'Malala', 98.9, 'Pass']

Like this:

students = [
['Example High', 'Mary', 89.6, 'Pass'],
['Example High','Matthew', 76.5, 'Fail'],
['Example High', 'Marie', 80.4, 'Fail'],
['Example High', 'Manuel', 79.6, 'Fail'],
['Example High', 'Malala', 98.9, 'Pass']
]

This may help get you headed in the right direction:

for s in students:
print( s )

Hint: look forward to learning about f-strings...

HTH,
Pierre


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

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor