Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What does None mean here?
#1
What does None mean here?
Does it mean that it should be initialized as empty, but if there is input it can be overridden?
class ListNode:
    
    def __init__(self, data=None, next=None):
        self.data = data
        self.next = next
Reply


Messages In This Thread
What does None mean here? - by jenniferruurs - Sep-29-2019, 07:40 AM
RE: What does None mean here? - by buran - Sep-29-2019, 07:47 AM

Forum Jump:

User Panel Messages

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