Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: why (a and b) different from (b and a)
Post: RE: why (a and b) different from (b and a)

Ok thanks, but I have still a doubt. Why do (True, 2) and (False, False) = (False, False) and (False, False) and (True, 2) = (True, 2) ? How can I apply your approach to tuples?
oloap General Coding Help 4 2,274 Apr-10-2020, 08:17 AM
    Thread: why (a and b) different from (b and a)
Post: why (a and b) different from (b and a)

suppose that a = (True, 2) and b = (False, False). Why do a and b is different from b and a? Specifically, a and b == (False, False), and b and a == (True, 2)
oloap General Coding Help 4 2,274 Apr-07-2020, 07:24 PM
    Thread: reference in pop function for linked list
Post: reference in pop function for linked list

Hello, I have designed two methods, pop1 and pop2, to remove an element from a linked list. Both functions pop1 and pop2 manages two cases: 1) if the element to be removed is the head of the list 2) ...
oloap General Coding Help 0 1,582 Mar-14-2020, 05:52 PM
    Thread: set a new object node in a linked list via reference
Post: RE: set a new object node in a linked list via ref...

Got it. This is how it should be implemented: def push (self, data): new_node = Node(data) if self.head == None: self.head = new_node else: new_node.next = self.head s...
oloap General Coding Help 2 2,112 Mar-13-2020, 09:45 PM
    Thread: set a new object node in a linked list via reference
Post: set a new object node in a linked list via referen...

Hello, I have written a script to create a circular list. The problem is that, when I add a node to the list using the push function, it is not actually added. I guess this is a problem of assigning ...
oloap General Coding Help 2 2,112 Mar-13-2020, 04:49 PM

User Panel Messages

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