Ad
  • Custom User Avatar

    As Chrono said, theres just a slight syntactical difference (parentheses "()" vs brackets "[]") that Python treats very differently as two different types of data structures: lists and tuples.

    The most basic difference is that lists are mutable (you can rearrange the order of things inside them) and tuples are not.

    That said, there are other differences that are important when deciding which to use. Here's docs with more information: https://www.geeksforgeeks.org/python-difference-between-list-and-tuple/

  • Custom User Avatar

    That's because lists and tuples aren't the same thing. Not a kata issue, use question label next time.