I'm trying to code a word scrambler but when I try to append letters from my word, using index, I get the error 'String index out of range'. I have tried this without the 'input' but once I added it in I started getting problems. my code is:
a = input('word ->')
b = []
count = 0
while count < 5:
b.append(a[count])
count +=1
print(b)
it would be great if someone could help. thanks
b = a[:5]