1
General discussion / Re: How do you covert from PDF's to epub/mobi without any formatting issues
« on: September 15, 2015, 09:07:50 PM »
Thank you i will try your suggestion and report back.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
def is_rev(word1, word2):
if len(word1) != len(word2):
return False
i = 0
j = len(word2)-1
print(i,j)
while j > 0:
if word1[i] != word2[j]:
return false
i = i + 1
j = j - 1
When i run this script it doesn't go through the i and j part in the while loop. I'm not sure why.
The output is like
>>> is_rev('pots', 'stop')
0 3