How to split the words of a text - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

How to split the words of a text

atajafatajaf Posts: 1Member
I'm trying to write a program to encrypt and decrypt the messages.
I get help from ACII to do it.
My code works. But sometimes I get error. That's why my code get error :

list = ['I ', 'r', 'e', 'b', 'e', 'l', ' ', 't', 'h', 'e', 'r', 'e', 'f', 'o', 'r', 'e', ' ', 'w', 'e', ' ', 'e', 'x', 'i', 's', 't', '.']

In this list, list[0] is 'I '. But I expect to be 'I'. That's why my code doesn't work.
I need help.

Sign In or Register to comment.