Quantcast
Viewing latest article 3
Browse Latest Browse All 6

Answer by Uri Granta for Time to settle this: Java vs C++

Python 3, 95 bytes

First golf in a while. Comments welcome.

lambda s:"".join(["_"*(x!=(l:=x.lower()))+l,x.upper()][p=="_"]*(x!="_")for p,x in zip("."+s,s))

Viewing latest article 3
Browse Latest Browse All 6

Trending Articles