What is the output of this code snippet?
x = ‘py’ ‘thon’
A well-designed puzzle conveys one single point that surprises the reader. This puzzle introduces a language feature that surprised me when I first saw it. The Python interpreter automatically concatenates two strings that are next to each other. Think about all the pluses ‘+’ you could save! Python is truly a minimalistic programming language.
Are you a master coder?
Test your skills now!