Greetings,
In the following code, there's a bug on certain parameters.
--
def per(n, steps = 0):
digits = [int(i) for i in str(n)]
result = 1
for j in digits:
result *= j
steps += 1
print(steps, result, sep=" - ")
if result == 0:
print(result, str(result), len(str(result)), sep
On Tue, Mar 26, 2019 at 5:08 AM Bassam Abdul-Baki wrote:
>
> def per(n, steps = 0):
> if len(str(result)) == 1:
> print(" --- DONE ---")
> return "DONE"
> else:
> per(result, steps)
>
> --
>
> What the program does:
> If I run per(X) and X is a multiple of 10, I should end up with
Bassam Abdul-Baki wrote:
> Greetings,
>
> In the following code, there's a bug on certain parameters.
>
> --
>
> def per(n, steps = 0):
> digits = [int(i) for i in str(n)]
> result = 1
> for j in digits:
> result *= j
> steps += 1
> print(steps, result, sep=" - ")
> if result ==
Bassam,
Greetings.
On 26/03/19 1:14 AM, Bassam Abdul-Baki wrote:
Greetings,
In the following code, there's a bug on certain parameters.
--
def per(n, steps = 0):
digits = [int(i) for i in str(n)]
result = 1
for j in digits:
result *= j
steps += 1
print(steps, result, sep
On 3/25/2019 8:14 AM, Bassam Abdul-Baki wrote:
Greetings,
In the following code, there's a bug on certain parameters.
--
def per(n, steps = 0):
digits = [int(i) for i in str(n)]
result = 1
for j in digits:
result *= j
steps += 1
print(steps, result, sep=" - ")
if result
I have no idea what "TypeError: unsupported operand type(s) for +: 'function'
and 'int'" means and I don't know how to fix it. Help!
--
https://mail.python.org/mailman/listinfo/python-list
On Monday, March 25, 2019, at 3:31:09 PM UTC-4, CrazyVideoGamez wrote:
> I have no idea what "TypeError: unsupported operand type(s) for +: 'function'
> and 'int'" means and I don't know how to fix it. Help!
--
https://mail.python.org/mailman/listinfo/python-list
On Monday, March 25, 2019 at 2:07:11 PM UTC-4, Bassam Abdul-Baki wrote:
> Greetings,
>
> In the following code, there's a bug on certain parameters.
>
> --
>
> def per(n, steps = 0):
> digits = [int(i) for i in str(n)]
> result = 1
> for j in digits:
> result *= j
> steps += 1
> p
On 3/25/19 12:30 PM, CrazyVideoGamez wrote:
I have no idea what "TypeError: unsupported operand type(s) for +: 'function' and
'int'" means and I don't know how to fix it. Help!
It means you can't add (i.e. apply the + operator) a function to an int.
Which is only a problem because somewhere
On Wednesday, March 20, 2019 at 8:29:42 PM UTC-4, MRAB wrote:
> On 2019-03-21 00:12, DL Neil wrote:
> > Jason,
> >
> > On 21/03/19 12:34 PM, jasonanyil...@gmail.com wrote:
> >> So, I typed in code:
> >> from turtle import *
> >> forward(100)
> >> right(120)
> >> clear()
> >> It didn't work! It kep
On Wednesday, March 20, 2019, at 7:34:53 PM UTC-4, CrazyVideoGamez wrote:
> So, I typed in code:
> from turtle import *
> forward(100)
> right(120)
> clear()
> It didn't work! It kept on saying that there was an indent and the first line
> was wrong. Help!
wait no nevermind im such an idiot
--
h
On 3/25/19 2:30 PM, CrazyVideoGamez wrote:
I have no idea what "TypeError: unsupported operand type(s) for +: 'function' and
'int'" means
It means that you're trying to add an int to a function.
> ... and I don't know how to fix it. Help!
Don't do that?
It's possible that with the correct c
On Mon, Mar 25, 2019 at 3:45 PM CrazyVideoGamez wrote:
> wait no nevermind im such an idiot
Every programmer I have ever known has said that.
--
https://mail.python.org/mailman/listinfo/python-list
What is your favorite Python IDE?
--
https://mail.python.org/mailman/listinfo/python-list
Been using IDEs for 30 years (turbopascal anyone?): by far, PyCharm (used
for 5 years so far). Then VS Code (one year). I still use both. Vs Code is
faster to load, uses less mem and has a simplicity about it that is
appealing.
BUT vscode has similar speed to pycharm once started (actually might e
On 26/03/19 10:38 AM, John Doe wrote:
What is your favorite Python IDE?
In case you are tempted to reply, neither of "John"'s supposed domains
resolves (to a web site)/has been registered.
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
On 2019-03-25, Larry Martell wrote:
> On Mon, Mar 25, 2019 at 3:45 PM CrazyVideoGamez
> wrote:
>> wait no nevermind im such an idiot
>
> Every programmer I have ever known has said that.
And never saying that is a 100% reliable indicator that you really are
one...
--
Grant Edwards
https://blog.python.org/2019/03/python-373-is-now-available.html
Python 3.7.3 is now available. Python 3.7.3 is the next
maintenance release of Python 3.7, the latest feature release of Python.
You can find Python 3.7.3 here:
https://www.python.org/downloads/release/python-373/
See the What’s
On Monday 25 March 2019 18:20:29 DL Neil wrote:
> On 26/03/19 10:38 AM, John Doe wrote:
> > What is your favorite Python IDE?
>
> In case you are tempted to reply, neither of "John"'s supposed domains
> resolves (to a web site)/has been registered.
>
> --
> Regards =dn
your email agent is inventin
John Doe writes:
> What is your favorite Python IDE?
The same as my favourite JavaScript IDE, Haskell IDE, and any other
language I need:
Emacs and a shell multiplexer (today, that's GNU Screen, but others
swear that I should try TMux).
An IDE, like all of the tools that we rely on for getting
I use Python3 3, and expected learning how to use configparser would be
no big deal. Well! Seems there is configparser, stdconfigparser, and
safeconfigparser, and multiple ways to set the section and entries to
the section. A little confusing. I want to future-proof may code, so
what should
Congrats to all for a timely release! -- H
On Mon, 25 Mar 2019 at 17:19, Ned Deily wrote:
> https://blog.python.org/2019/03/python-373-is-now-available.html
>
> Python 3.7.3 is now available. Python 3.7.3 is the next
> maintenance release of Python 3.7, the latest feature release of Python.
> Yo
On 2019-03-25 22:38, Grant Edwards wrote:
On 2019-03-25, Larry Martell wrote:
On Mon, Mar 25, 2019 at 3:45 PM CrazyVideoGamez wrote:
wait no nevermind im such an idiot
Every programmer I have ever known has said that.
And never saying that is a 100% reliable indicator that you really are
On 26/03/19 12:55 PM, Gene Heskett wrote:
On Monday 25 March 2019 18:20:29 DL Neil wrote:
On 26/03/19 10:38 AM, John Doe wrote:
What is your favorite Python IDE?
In case you are tempted to reply, neither of "John"'s supposed domains
resolves (to a web site)/has been registered.
--
Regards =
On 2019-03-25 18:55, Gene Heskett wrote:
On Monday 25 March 2019 18:20:29 DL Neil wrote:
On 26/03/19 10:38 AM, John Doe wrote:
What is your favorite Python IDE?
In case you are tempted to reply, neither of "John"'s supposed domains
resolves (to a web site)/has been registered.
--
Regards =
Dave,
On 26/03/19 1:10 PM, Dave wrote:
I use Python3 3, and expected learning how to use configparser would be
no big deal. Well! Seems there is configparser, stdconfigparser, and
safeconfigparser, and multiple ways to set the section and entries to
the section. A little confusing. I want
On 3/25/19 10:58 PM, DL Neil wrote:
Dave,
On 26/03/19 1:10 PM, Dave wrote:
I use Python3 3, and expected learning how to use configparser would
be no big deal. Well! Seems there is configparser, stdconfigparser,
and safeconfigparser, and multiple ways to set the section and entries
to the
On 25Mar2019 23:24, Dave wrote:
On 3/25/19 10:58 PM, DL Neil wrote:
On 26/03/19 1:10 PM, Dave wrote:
I use Python3 3, and expected learning how to use configparser
would be no big deal. Well! Seems there is configparser,
stdconfigparser, and safeconfigparser, and multiple ways to set
the s
As proposed on python-ideas, i setup a repo to turn mail threads into
articles.
here is the repo
https://github.com/Abdur-rahmaanJ/py-mailing-list-summary
i included a script to build .md to .html (with syntax highlighting) here
is the index
https://abdur-rahmaanj.github.io/py-mailing-list-summ
On Monday 25 March 2019 22:14:48 Spencer Graves wrote:
> On 2019-03-25 18:55, Gene Heskett wrote:
> > On Monday 25 March 2019 18:20:29 DL Neil wrote:
> >> On 26/03/19 10:38 AM, John Doe wrote:
> >>> What is your favorite Python IDE?
> >>
> >> In case you are tempted to reply, neither of "John"'s s
On Monday 25 March 2019 22:24:14 DL Neil wrote:
> On 26/03/19 12:55 PM, Gene Heskett wrote:
> > On Monday 25 March 2019 18:20:29 DL Neil wrote:
> >> On 26/03/19 10:38 AM, John Doe wrote:
> >>> What is your favorite Python IDE?
> >>
> >> In case you are tempted to reply, neither of "John"'s suppose
31 matches
Mail list logo