- #1
member 428835
I'm looking at a script and it begins with
but what is the point of line 1? I've tried reading, and am pretty confused. Also, what is the purpose of "self" in the function? At some point later the script writes
What's happening here with the ob1 = and then the ob1.?
Python:
class Solution(object):
def lengthOfLongestSubstring(self, s):
Python:
ob1 = Solution()
print(ob1.lengthOfLongestSubstring("ABCABCBB"))