Feb 22, 2016 01:49 PM
(This post was last modified: Feb 22, 2016 01:52 PM by Gameh3x.)
I also ran into trouble with another task. I need to write a program that asks the user for 2 words, if they are the same it prints "same", if not it prints the word that has more letter "e" in it.
1)So I start it off with this right:
word1 = raw_input("Enter the first word")
word2 = raw_input("Enter the second word")
2)Now if they are the same it should be
if word1 == word2
print ("Same")
3)How do i make it check which word has more letters "e" in it?
1)So I start it off with this right:
word1 = raw_input("Enter the first word")
word2 = raw_input("Enter the second word")
2)Now if they are the same it should be
if word1 == word2
print ("Same")
3)How do i make it check which word has more letters "e" in it?

