I am trying to print out three characters of a string at a time. I am aware of
>>> s = 1234
>>> s[0:3]
123
I need the whole string to print but only three characters to be displayed at a time.
This is what I am being asked. Write a function PrintThree(s) that prints out a string s, three characters at a time. Remember that len(s) returns the length of a string.
I just need to be guided on how to do so, if you just post a code, please give a brief explanation, thanks!