Python question: video7-9

I just copied the video, but I got different result.
My result is {‘python’: (((0, 1), 1), 1)} instead of {“python”: 3}

Another question: Why “get” in line 5 and “TagCloud” in line 6 don’t change color in my computer?

Thank you!

  1. class TagCloud:

  2. def init(self):

  3.    self.tags = {}
    
  4. def add(self, tag):

  5.     self.tags[tag] = self.tags.get(tag, 0), + 1
    
  6. cloud = TagCloud()

  7. cloud.add(“python”)

  8. cloud.add(“python”)

  9. cloud.add(“python”)

  10. print(cloud.tags)

I don’t have access to the videos, but if you want, post a screenshot of the video where you are having the problem. That way I can help you.