Jan-05-2019, 08:35 AM
I am trying to learn how to split a word into increments of 2. What I have so far is:
word = "potlucks"
i = 0
print(word[0:2])
OUTPUT:
po
** So if I want it to continue increasing by letters until the word ends what do I need to add. I believe it's something with += 2 but I don't know where exactly to add it.
word = "potlucks"
i = 0
print(word[0:2])
OUTPUT:
po
** So if I want it to continue increasing by letters until the word ends what do I need to add. I believe it's something with += 2 but I don't know where exactly to add it.