Palindrome

Georgy Pruss SEE_AT_THE_END at hotmail.com
Thu Nov 13 00:35:32 EST 2003


Knowing what your program should do, could also help.
G-:

"Runic911" <runic911 at aol.com> wrote in message news:20031112223135.29045.00000109 at mb-m12.aol.com...
| Does anyone know how i can fix my Palindrome program?
|
| s = raw_input('Enter a String: ')
| punctuation = '%$!*.,-:? ;()\'\"\\'
| i = 0
| h = 0
| t = 0
| p = ''
| z = 0
| while s!= ' ':
|     while i <= len(s) - 1:
|         punct = s[i]
|         if punctuation.find(punct) == -1:
|             p = p + punct
|         i = i + 1
|         t = p.lower()
|         t[h] == t[len(t)-1-h]


-- 
Georgy Pruss
E^mail: 'ZDAwMTEyMHQwMzMwQGhvdG1haWwuY29t\n'.decode('base64')






More information about the Python-list mailing list