Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Python books for beginners
Post: Python books for beginners

Hi everyone, What Python book(s) should I buy for a friend of mine who wants to learn how to program? Thanks. Bill
BillMcEnaney News and Discussions 1 2,082 Sep-10-2020, 05:24 AM
    Thread: Create a function to find words of certain length
Post: RE: Create a function to find words of certain len...

This is a concise way to count words of the required length, but it's probably slow. To shorten it to two lines, I could find the length of the list comprehension and delete the line that assigns a ...
BillMcEnaney General Coding Help 2 4,064 Apr-21-2019, 06:20 PM
    Thread: Finding perfect numbers
Post: RE: Finding perfect numbers

(Apr-04-2019, 03:44 AM)micseydel Wrote: If you like functional programming, you might want to checkout Scala. It doesn't have break or continue for its loops, some might find that frustrating but it...
BillMcEnaney General Coding Help 6 4,378 Apr-04-2019, 04:46 AM
    Thread: Finding perfect numbers
Post: RE: Finding perfect numbers

(Apr-03-2019, 03:07 AM)ichabod801 Wrote: (Apr-03-2019, 02:04 AM)BillMcEnaney Wrote: Ichabod, you mean that my code doesn't work, right? Yes, sorry, that's what I meant. You just need to run the lo...
BillMcEnaney General Coding Help 6 4,378 Apr-03-2019, 05:15 AM
    Thread: Finding perfect numbers
Post: RE: Finding perfect numbers

(Apr-03-2019, 01:30 AM)ichabod801 Wrote: I would have used not number % divisor, and not bothered with the divides function. Also, your code does work right. It returns False for 6. Going to the sq...
BillMcEnaney General Coding Help 6 4,378 Apr-03-2019, 02:04 AM
    Thread: Finding perfect numbers
Post: Finding perfect numbers

Everyone, Lisp, Prolog, Python, and Haskell are my favorite programming languages partly because I love functional programming. But I know that Prolog is a logic programming language instead of a func...
BillMcEnaney General Coding Help 6 4,378 Apr-02-2019, 11:22 PM
    Thread: A hidden library?
Post: RE: A hidden library?

Thank you, folks.
BillMcEnaney General Coding Help 3 3,141 Apr-02-2019, 12:00 AM
    Thread: recursion
Post: RE: recursion

(Apr-01-2019, 07:21 PM)mcgrim Wrote: this is what I came up with but not sure if is right. For x sub (n)= x sub (n-1) + 10 would it perhaps be def f(x): return x(i-1) + 10 ?You need an if statem...
BillMcEnaney Data Science 6 3,162 Apr-01-2019, 11:42 PM
    Thread: A hidden library?
Post: A hidden library?

Hi everyone, I'm new here because I need to help a friend of mine who runs Python on a Linux platform. To install a Python library on that platform, he ran pip and he knows that the library lives o...
BillMcEnaney General Coding Help 3 3,141 Apr-01-2019, 08:48 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020