apart from everything else, have they never heard of a switch statement
Good if you are rated by an AI that pays for LOCs.
I am more amazed that he didn't stop at 10 and think "damn this is tiresome isn't there a one liner i could do?". I want to know how far he went. His stubbornness is amazing but also scary. I haven't seen this kind of code since back in school lol lol lol
Oh shit, gotta check the negative numbers as well!
that's some good code right there
When did Thor become the dev for Yandere Simulator?
Throwback to when someone shared the OG version of this meme to my uni chat, I replied with "Oh you can simply do
def is_even(n: int) -> boolean:
if n > 0 return not is_even(n - 1)
elif n < 0 return not is_even(n + 1)
else return True
And instead of laughing at the joke the TA in the chat said "When you start getting internships you'll do n % 2" like I was being serious.
The end user yearns for their machine to be utilized fully, so instead of that, you can import full deepseek model to do the task
To be fair, the question is "Write a function that simultaneously determines if the number is even and works as a timer"
sleepSort meets sleepIsEven
I hope that the language's ints are at most 32 bits. For 8 bits it could even be written by hand & the source code for a 32 bit version would only take up avg_line_len * 4GiB space for the source code of the function. But it might take a bit of time to compile a version that supports the full range of 64 or 128 bit ints.
My mate, Paul, says all numbers after 700 repeat so we can stop there.
We just give them different names so you think they're going up.
all you have to to is throw an exception if the number is bigger than 100, who even needs numbers that big anyways?
I want to assess coders by lines written! The more the better!
Programmer Humor
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.