Python
fromPythonmorsels
3 days agoSelf-concatenation
Python allows multiplying strings by integers to repeat them; using + between strings and numbers raises a TypeError.
As we say goodbye to 2025, let's delight in its numerical charms one final time. The year was unique this century as being a square number. 442 = 1936 452 = 2025 462 = 2116 And since 45 = 20 + 25, we marvelled at the dazzling pattern: (20 + 25)2 = 2025 Good times.