I am new to Python and am starting with the basics. I am trying to split a string and consequently only show the first 5 words. The current code I have written only shows the first 5 letters from all words in stead of the first words, my code is:
fruitstal = "kiwi appel peer mandarijn banaan meloen ananas mango grapefruit"
lijst=fruitstal.split()
[print (i[:4] for i in lijst]