word = input("Enter a word: ")
count = len(word)
print("\nThere are", count, "words.")
print(word[count - 1])
print(word[count - 2])
print(word[count - 3])
print(word[count - 4])
print(word[count - 5])
print(word[count - 6])
print(word[count - 7])
This is probably the wrong way to do it, so please teach me the right way. The problem I have with this one is, how do I tell the computer to stop when it hits the last letter? Thank you for your help.
This post has been edited by pvpkiller: 02 July 2011 - 05:02 AM

New Topic/Question
Reply



MultiQuote





|