I am making a python program where I need to inspect individual four letter parts of a variable. If the variable is for example help_me_code_please it should output ease then e_pl etc , I attempted it with
a=0
b=3
repetitions=5
word="10011100110000111010"
for x in range (1,repetitions):
print(word[a:b])
a=a+4
b=b+4
however it just outputs empty lines. Thanks so much for any help in advanced.