Any idea how to improve this? Python, 40 bytes: [`lambda i,n:print(i,n+(""if i==1else"s"))`](https://ato.pxeger.com/run?1=m72soLIkIz9vweI025ilpSVpuhY3NXISc5NSEhUydfKsCooy80o0gCxtDSWlzDSFTFtbw9Sc4lSlYiVNTah6zTQNAx0FpcSCgpxUJU2uNA1DFJ4RggfRsGABhAYA)
in re: when i google "please don't remove my spaces" it is the only result
i dont know smilebasic but i dont see anything there that would cause that specific message to appear, and if something would cause that, id presume itd be documented and googleable
@thejonymyster Likely that (please don't remove my spaces) is supposed to be a space, but SE's markdown doesn't let you put a single space in a code block very easily
sorry it's a little OT but I am confused by python again. I want to use dlib.find_min_global from dlib.net/global_optimization.py.html . You will see the function that it optimizes is defined as def holder_table(x0,x1):. But what do you do if you have 100 variables? Do you really need def holder_table(x0, x1, ...,x99)? I mean can you somehow pass a list of variables instead?
be careful with your spaces, i learned that i *= 3 multiplies i by three but i*=3 does not
@RadvylfPrograms so..... in-place operators like +=*= etc are useless for golfing because you have to surround them with spaces, making x=x*5 shorter than x *= 5
Convert Klingon romanization to pIqaD
Context
Klingon is a constructed language from Star Trek. It has two writing systems: a not-very-good Latin alphabet (with case distinctions, I being different from l, ...) and its own script, called pIqaD.
Task
Convert the bad[disputed - discuss] Klingon ro...
@Ginger you have to also do & -> & otherwise you might get invalid HTML; also, if you put the value in an attribute value like <a href="user input">, then you should also do " and '
The sequence of Fibonacci numbers is defined as follows:
\$
F_0 = 0 \\
F_1 = 1 \\
F_n = F_{n-1} + F_{n-2}
\$
Given a Fibonacci number, return the previous Fibonacci number in the sequence. You do not need to handle the inputs \$ 0 \$ or \$ 1 \$, nor any non-Fibonacci numbers.
This is code-golf, s...
Personally I'm of the opinion that using even standard I/O rules like "currying is allowed" is boring and borderline cheaty if you can do it a more "normal" way
@emanresuA I'd respond something along the lines of "flag scoring is difficult to get right, and adding bytes for flags was hurting certain languages that need flags to function, so our site's rules now consider flag variants of languages to be similar to different languages, and don't compete with the rest, at no byte penalty." But then again, I wouldn't use flags in the first place :p
I'm sure most of us have heard of zip bombs and similar decompression bomb tricks, where a maliciously crafted input creates a massively disproportionate output. We even had a question on here to do that to a compiler at one point.
Well, it occurs to me that Markdown is a compression format of s...
@UnrelatedString So I was trying to solve the reverse-fibonacci (given fib(n) find n) challenge, but did not succeed. I got the "forward" (given n find fib(n)) fibonacci evaluation to work (see tio.run/##KyjKz8lP1y0uz/z/…), but I couldn't use it in the other direction. Do you know what I have to change for that?