JPDev@programming.dev to Programmer Humor@programming.dev · 2 年前Exam Answerprogramming.devimagemessage-square127linkfedilinkarrow-up1800arrow-down111
arrow-up1789arrow-down1imageExam Answerprogramming.devJPDev@programming.dev to Programmer Humor@programming.dev · 2 年前message-square127linkfedilink
minus-squareCrazyEddie041@kbin.sociallinkfedilinkarrow-up19·2 年前Conversations about language aside, the error is that “Monday” is a string with a length of 6.
minus-squarenathanjent@programming.devlinkfedilinkarrow-up6arrow-down2·2 年前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”.
minus-squareripcord@lemmy.worldlinkfedilinkarrow-up9·2 年前There is a fairly good chance that there has been more info presented in the class than we have been given here.
Conversations about language aside, the error is that “Monday” is a string with a length of 6.
What is the type of the variable
daythough? As it is we have to make multiple assumptions, based on popular programming languages, about the internals of thestringtype and theprintfunction to assume that it prints “6”.There is a fairly good chance that there has been more info presented in the class than we have been given here.
deleted by creator
That’s the variable name, not the type