You are viewing a single thread.
View all comments View context
19 points

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

permalink
report
parent
reply
4 points

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”.

permalink
report
parent
reply
9 points

There is a fairly good chance that there has been more info presented in the class than we have been given here.

permalink
report
parent
reply
3 points
Deleted by creator
permalink
report
parent
reply
1 point

That’s the variable name, not the type

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 5.2K

    Monthly active users

  • 1K

    Posts

  • 38K

    Comments