Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"It's when they say 2 + 2 = 5 that I begin to argue." -- Eric Pepke


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

SubjectAuthor
o Re: Newline (NuBe Question)Thomas Passin

1
Re: Newline (NuBe Question)

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

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=28899&group=comp.lang.python#28899

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!paganini.bofh.team!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!not-for-mail
From: list1@tompassin.net (Thomas Passin)
Newsgroups: comp.lang.python
Subject: Re: Newline (NuBe Question)
Date: Wed, 15 Nov 2023 15:54:45 -0500
Lines: 49
Message-ID: <mailman.265.1700082749.3828.python-list@python.org>
References: <65547270.3139.338043@RealGrizzlyAdams.vivaldi.net>
<6554F6FD.23324.1B219E@RealGrizzlyAdams.vivaldi.net>
<20231115121916.610cbf32@pfortin.com>
<65551645.18452.230A27@RealGrizzlyAdams.vivaldi.net>
<5129e9a3-025b-411b-96d1-b562df9b2115@tompassin.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de sY1ztwHXv4i7hBkDWAlE5w8dr3HrUllQi/xu8FWJkyYw==
Cancel-Lock: sha1:N5+eVkrtiVlAAJemehCa1ST/Cq4= sha256:Wdg76akk4vFKliY0bmQcxyIz5hCgzNdM7BaIAQ3TZWU=
Return-Path: <list1@tompassin.net>
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=tompassin.net header.i=@tompassin.net header.b=OvyEEzcG;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.007
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'students.': 0.03; 'this:':
0.03; '2023': 0.07; 'spaces': 0.07; 'wrong.': 0.07; 'else:': 0.09;
'posts.': 0.09; '"list': 0.16; 'ahead,': 0.16; 'grades': 0.16;
'indentation': 0.16; 'newline': 0.16; 'part)': 0.16; 'print(':
0.16; 'received:10.0.0': 0.16; 'received:64.90': 0.16;
'received:64.90.62': 0.16; 'received:64.90.62.162': 0.16;
'received:dreamhost.com': 0.16; 'subject:Newline': 0.16; 'wrote:':
0.16; 'pm,': 0.19; 'subject:Question': 0.19; 'to:addr:python-
list': 0.20; 'code': 0.23; 'student': 0.24; 'wednesday,': 0.26;
'>>>': 0.28; 'header:User-Agent:1': 0.30; 'python-list': 0.32;
'received:10.0': 0.32; 'received:mailchannels.net': 0.32;
'received:relay.mailchannels.net': 0.32; 'there': 0.33; 'header
:In-Reply-To:1': 0.34; 'also,': 0.36; 'students': 0.38; 'least':
0.39; 'list': 0.39; 'use': 0.39; 'wed,': 0.39; 'want': 0.40;
'search': 0.61; 'skip:h 10': 0.61; 'forward': 0.62; 'between':
0.63; 're:': 0.64; 'your': 0.64; 'look': 0.65;
'header:Received:6': 0.67; 'received:64': 0.67; 'right': 0.68;
'them,': 0.70; 'extra': 0.84; 'direction:': 0.84; 'students:':
0.84; 'adams': 0.91; 'headed': 0.91
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1700081686; a=rsa-sha256;
cv=none;
b=vaPt/uWsBd0ceO4h0pMOVQZhF0Oqq/XX/xhAcsHIGZTnn4bmajwEHZenVvBUVt9PVEClbI
0sR2kd+JfVC2Gr6JzvtUexSpCZrBlgwad0jGBxfTVYbnRryDM1FQX8bqE+sVm2MTHrdhF3
uvGGzOHlIg6EavRMAWNBj7tM13TMRk3Gj1bk2kF03O6f3H/+pbrij4kah9r7bCCkb3OEW2
XuzakUlrGKpApMp95F2IA5jZhS6k3QTQYsRDZBhKuaN3VmrA40d0pTmV6bxfULud9o8Ivn
kFdIEaDm5gM/c7tXU7pav/LUM0TTGvtCLGnq1MmY5esd6nZCsvzTxEWx9IDtlA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
d=mailchannels.net; s=arc-2022; t=1700081686;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:mime-version:mime-version:content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references:dkim-signature;
bh=ERFhfXl6S4l4PewzmcVXBTjkxmvFDBf7WXYxUwnePwQ=;
b=ynPgdvNcnPJcaaJKLR1K7hQwCVXruopjXeqDfSL/kKl1R/12oL60OF9E+e20SjeAI6SUf1
xkdNF4ExzIFHmEIf/uPVrjQi+/7VjIW4NpnryWVDZrHXf8J2cj/N/Ib1zB6eOJPR5uhslx
3D8b48Pp11Og/1AdkTrkGx+8Fzd5ZpTVenDvtAqg9wCDrR4v3O0IXlONZ+isNj0h+0nuNM
yH/e2uF2b/b4a7F99EFA8PclQQe0GE5FAUn06zbHahjbfIxhRKY52HXVJTW22UzqjefCmp
odGeBJqMpB6YCkARE/gxGPVH3J9SblUrB0pb8J0W4Sld+HJChRKApm1bnGGxgQ==
ARC-Authentication-Results: i=1; rspamd-55bcb54c45-nj2pc;
auth=pass smtp.auth=dreamhost smtp.mailfrom=list1@tompassin.net
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|tpassin@tompassin.net
X-MailChannels-Auth-Id: dreamhost
X-Stop-Illegal: 6c9081e325505168_1700081686322_1516834709
X-MC-Loop-Signature: 1700081686322:848782342
X-MC-Ingress-Time: 1700081686322
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tompassin.net;
s=dreamhost; t=1700081686;
bh=ERFhfXl6S4l4PewzmcVXBTjkxmvFDBf7WXYxUwnePwQ=;
h=Date:Subject:To:From:Content-Type:Content-Transfer-Encoding;
b=OvyEEzcGPTlGKwAW06/Hm54Kx/yFzpOSJC6KSNH4mqBmg0NRfGxQPJynPdRDbf5M4
KMKQNYBnnne04GUCX0Ys8vQXiYbOJm9oHHio6pcjFzY4F+ns/15qd4Mxu75l3wMgxa
LLYkoU2KUNRUWuqAKHpmUm1cECdxqOtJb0Hwd92l/rg60//4M2xRBEdOXvz8VXee2t
F4AIXGp9g6GxaqvABrY5scAPIqvxI+GW/XTaVM1Fo9SxrSz0WzjqsD/3cAPZfHaYRZ
7BMCmcbtp+VmKL5BrcEH/PRMh/DWzft6bqAwoZN4aqVh2uPlcxi6+IqtYe+tEBFflh
Ybjo7zL3uQyYQ==
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <65551645.18452.230A27@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: <5129e9a3-025b-411b-96d1-b562df9b2115@tompassin.net>
X-Mailman-Original-References: <65547270.3139.338043@RealGrizzlyAdams.vivaldi.net>
<6554F6FD.23324.1B219E@RealGrizzlyAdams.vivaldi.net>
<20231115121916.610cbf32@pfortin.com>
<65551645.18452.230A27@RealGrizzlyAdams.vivaldi.net>
 by: Thomas Passin - Wed, 15 Nov 2023 20:54 UTC

On 11/15/2023 2:04 PM, Grizzy Adams via Python-list wrote:
> Wednesday, November 15, 2023 at 12:19, Pierre Fortin wrote:
> Re: Newline (NuBe Question) (at least in part)
>
>> 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']
>> ]
>
> for now I made a copt of code and altered to
>
> students = []
> grades = []

# In this design there is no point in the extra loop.
# also, the indentation is wrong. Perhaps you inserted
# tabs? Use only spaces in these posts.
# Also you don't need the students list
> for student in geographyClass:
> # students.append(geographyStudent(s))
s = geographyStudent(student)
>
# for s in students:
> if s.finalGrade()>82: Result=("Pass")
> else: Result=("Fail")
> print(s.school, s.name, s.finalGrade(),Result)
>
>> This may help get you headed in the right direction:
>
>> for s in students:
>> print( s )
>
>> Hint: look forward to learning about f-strings...
>
> I will look forward to them, may even go search ahead,


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

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor