Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: number accuracy problem?
Post: RE: number accuracy problem?

(Dec-23-2021, 10:28 PM)Gribouillis Wrote: There are many issues in your code, before I talk about them, here is a code that I wrote to solve this problem, inspired by your code. It finds the solutio...
roym General Coding Help 5 1,835 Dec-24-2021, 07:57 AM
    Thread: number accuracy problem?
Post: RE: number accuracy problem?

(Dec-23-2021, 05:17 PM)deanhystad Wrote: signs does not end up being an array containing alternating signs. It does start with a pattern like [-1, 1, 1, -1, -1, 1, 1...] but it ends with [...0, 0, ...
roym General Coding Help 5 1,835 Dec-24-2021, 07:55 AM
    Thread: number accuracy problem?
Post: number accuracy problem?

Hi all, I am trying to solve problem 78 from Project Euler (https://projecteuler.net/problem=78). The problem is related to integer partition. The question here is to find the first number, n, for w...
roym General Coding Help 5 1,835 Dec-23-2021, 01:49 PM
    Thread: behavior list of lists
Post: RE: behavior list of lists

Thanks for the explanation deanhystad, my confusion was indeed related to the immutable and mutable objects. Since a list always holds the same memory adress, even after its elements are changed, I wa...
roym General Coding Help 5 2,087 Jul-04-2021, 04:43 PM
    Thread: behavior list of lists
Post: RE: behavior list of lists

Hi Yoriz, thanks for the reply. Oke, I see. So in your first example (which corresponds to my case), the values are changed in multiple places because the lists are the same, right? Now if I conside...
roym General Coding Help 5 2,087 Jul-04-2021, 12:34 PM
    Thread: behavior list of lists
Post: behavior list of lists

Dear all, I am new to Python, and currently I am practicing around a bit with lists. One of the assignments is to create a 3D list. Below is the code I use to create this 3D lists. I consists of som...
roym General Coding Help 5 2,087 Jul-04-2021, 10:24 AM

User Panel Messages

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