• CrazyEddie041
    link
    fedilink
    193 months ago

    Conversations about language aside, the error is that “Monday” is a string with a length of 6.

    • @[email protected]
      link
      fedilink
      43 months ago

      What is the type of the variable day though? As it is we have to make multiple assumptions, based on popular programming languages, about the internals of the string type and the print function to assume that it prints “6”.