Howdy, Stranger!

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

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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.