PY
py
1
2
3
4
# https://www.sololearn.com/Discuss/1003610/challenge-counting-and-display-strings
# Amazing what you can do in one line of code
[print("word {}: {}".format(count+1, word)) if word != "\n" else print("{} words".format(count)) for count, word in enumerate("Slowly I start to think you can do everything in one line in python".split()+["\n"])]
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run