On 08/08/2022 12:59, Dan Purgert wrote:
dn wrote:
On 06/08/2022 11.41, avi.e.gr...@gmail.com wrote:
I wonder if someone is pulling our leg as they are sending from an
invalid email address of "GB " which is
a bit sick.
There are a number of folk who use evidently false email addresses - the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
dn wrote:
> On 06/08/2022 11.41, avi.e.gr...@gmail.com wrote:
>> I wonder if someone is pulling our leg as they are sending from an
>> invalid email address of "GB " which is
>> a bit sick.
>
> There are a number of folk who use evidently false email
Behalf Of Chris Angelico
Sent: Saturday, August 6, 2022 8:12 AM
To: python-list@python.org
Subject: Re: Trying to understand nested loops
On Sat, 6 Aug 2022 at 22:08, Richard Damon wrote:
>
> On 8/6/22 12:01 AM, Chris Angelico wrote:
> > On Sat, 6 Aug 2022 at 13:54, Dan Stromberg wrote:
On Sat, 6 Aug 2022 at 22:39, Richard Damon wrote:
>
> On 8/6/22 8:12 AM, Chris Angelico wrote:
> > On Sat, 6 Aug 2022 at 22:08, Richard Damon wrote:
> >> On 8/6/22 12:01 AM, Chris Angelico wrote:
> >>> On Sat, 6 Aug 2022 at 13:54, Dan Stromberg wrote:
> On Fri, Aug 5, 2022 at 12:54 PM Grant
On 8/6/22 8:12 AM, Chris Angelico wrote:
On Sat, 6 Aug 2022 at 22:08, Richard Damon wrote:
On 8/6/22 12:01 AM, Chris Angelico wrote:
On Sat, 6 Aug 2022 at 13:54, Dan Stromberg wrote:
On Fri, Aug 5, 2022 at 12:54 PM Grant Edwards
wrote:
In C, this doesn't do what it looks like it's suppose
On Sat, 6 Aug 2022 at 22:08, Richard Damon wrote:
>
> On 8/6/22 12:01 AM, Chris Angelico wrote:
> > On Sat, 6 Aug 2022 at 13:54, Dan Stromberg wrote:
> >> On Fri, Aug 5, 2022 at 12:54 PM Grant Edwards
> >> wrote:
> >>
> >>> In C, this doesn't do what it looks like it's supposed to do.
> >>>
> >>
On 8/6/22 12:01 AM, Chris Angelico wrote:
On Sat, 6 Aug 2022 at 13:54, Dan Stromberg wrote:
On Fri, Aug 5, 2022 at 12:54 PM Grant Edwards
wrote:
In C, this doesn't do what it looks like it's supposed to do.
if (foo)
do_this();
and_this();
then_do_this();
It's been quit
On Sat, 6 Aug 2022 at 13:54, Dan Stromberg wrote:
>
> On Fri, Aug 5, 2022 at 12:54 PM Grant Edwards
> wrote:
>
> > In C, this doesn't do what it looks like it's supposed to do.
> >
> >if (foo)
> > do_this();
> > and_this();
> >then_do_this();
> >
> It's been quite a while since
On Fri, Aug 5, 2022 at 12:54 PM Grant Edwards
wrote:
> In C, this doesn't do what it looks like it's supposed to do.
>
>if (foo)
> do_this();
> and_this();
>then_do_this();
>
It's been quite a while since I used C, but with the right compiler
flag(s), I think this may be a thing
On Fri, 5 Aug 2022 08:34:45 +0100, ojomooluwatolami675 wrote:
> Hello, I’m new to learning python and I stumbled upon a question nested
> loops. This is the question below. Can you please how they arrived at 9
> as the answer. Thanks
>
> var = 0 for i in range(3):
> for j in range(-2,-7,-2):
>
;Dear
" followed by more lines.
-Original Message-
From: Python-list On
Behalf Of dn
Sent: Friday, August 5, 2022 7:58 PM
To: python-list@python.org
Subject: Re: Trying to understand nested loops
On 06/08/2022 11.41, avi.e.gr...@gmail.com wrote:
> I wonder if someone is pulling ou
On 06/08/2022 11.41, avi.e.gr...@gmail.com wrote:
> I wonder if someone is pulling our leg as they are sending from an invalid
> email address of "GB " which is a bit sick.
There are a number of folk who use evidently false email addresses - the
OP's had me amused.
Such 'hiding' is a matter for t
On Fri, Aug 5, 2022 at 12:30 PM GB wrote:
> On 05/08/2022 08:56, Frank Millman wrote:
>
> > BTW, there is an indentation error in your original post - line 5 should
> > line up with line 4.
>
> As a Python beginner, I find that Python is annoyingly picky about
> indents. And, the significance of
r at least that they have
spent any serious time learning.
-Original Message-
From: Python-list On
Behalf Of GB
Sent: Friday, August 5, 2022 5:57 AM
To: python-list@python.org
Subject: Re: Trying to understand nested loops
On 05/08/2022 08:56, Frank Millman wrote:
> BTW, there is an inde
On 06/08/2022 10.50, Dan Stromberg wrote:
> On Fri, Aug 5, 2022 at 12:35 AM wrote:
...
> Of if you don't have (or want) a debugger, you could change it to:
>
> var = 0
> for i in range(3):
> print('i is', i)
> for j in range(-2,-7,-2):
> print('j is', j)
> var += 1
> print(var)
>
On Fri, Aug 5, 2022 at 12:35 AM wrote:
> Hello, I’m new to learning python and I stumbled upon a question nested
> loops. This is the question below. Can you please how they arrived at 9 as
> the answer. Thanks
>
> var = 0
> for i in range(3):
> for j in range(-2,-7,-2):
> var += 1
> p
On 8/5/22 03:56, GB wrote:
> On 05/08/2022 08:56, Frank Millman wrote:
>
>> BTW, there is an indentation error in your original post - line 5
>> should line up with line 4.
>
> As a Python beginner, I find that Python is annoyingly picky about
> indents. And, the significance of indents is a bi
On 2022-08-05, GB wrote:
>> BTW, there is an indentation error in your original post - line 5
>> should line up with line 4.
>
> As a Python beginner, I find that Python is annoyingly picky about
> indents. And, the significance of indents is a bit of a minefield for
> beginners.
As a C begin
On 05/08/2022 08:56, Frank Millman wrote:
BTW, there is an indentation error in your original post - line 5 should
line up with line 4.
As a Python beginner, I find that Python is annoyingly picky about
indents. And, the significance of indents is a bit of a minefield for
beginners.
For
ojomooluwatolami...@gmail.com wrote at 2022-8-5 08:34 +0100:
>Hello, I’m new to learning python and I stumbled upon a question nested loops.
For future, more complex, questions of this kind,
you might have a look at the module `pdb` in Python's runtime library.
It implements a debugger which allow
It’s also a poor code example. Doing a pointless double loop is not good
instructional practice, especially when simpler alternatives exist. e.g.
for i in range(3):
for j in range(-2.-7,-2):
print(i +j )
—
Gerard Weatherby | Application Architect NMRbox | NAN | Department of Molecular
Biol
On 05Aug2022 09:47, Lars Liedtke wrote:
>this looks to me like it might be a piece of homework, as it would be
>given by teachers or professors.
>
>This list has got the rule, that members do not solve other's
>homework. Because very often homework is meant to sit down and think
>about it.
Ver
On 2022-08-05 9:34 AM, ojomooluwatolami...@gmail.com wrote:
Hello, I’m new to learning python and I stumbled upon a question nested loops.
This is the question below. Can you please how they arrived at 9 as the answer.
Thanks
var = 0
for i in range(3):
for j in range(-2,-7,-2):
var +=
Hello,
this looks to me like it might be a piece of homework, as it would be
given by teachers or professors.
This list has got the rule, that members do not solve other's homework.
Because very often homework is meant to sit down and think about it.
But maybe I interpreted that wrongly, so
Hello, I’m new to learning python and I stumbled upon a question nested loops.
This is the question below. Can you please how they arrived at 9 as the answer.
Thanks
var = 0
for i in range(3):
for j in range(-2,-7,-2):
var += 1
print(var)
Sent from my iPhone
--
https://mail.python.
25 matches
Mail list logo