My first one-liner:
I wrote it with the knowledge SoloLearns Python-tutorial gives from its start to the using of range(). Now, after learning more Python, I understand there would have been also easier ways, but this is my first one-liner. And the only one, for now.
Juan Prieto Isn't that a little cheating? I mean, in a pure one-liner there shouldn't be more than one line, and depending on language, one semicolon, I guess. Of course you cant do it like that in Java, but I think there should be only one "fair" line of code in the main-class, when using programming languages as Java, C, C++, C#...