Write a function called exactly weird()
which takes three strings as arguments and prints the longest one backwards. (In the case of a tie, the string which is the earlier argument should be selected.
The function call:
weird("I", "Love", "Python")
Should result in the following terminal output:
nohtyP
This is what I have done so far.. am not getting the scratch part right ...
running = True
while running:
word = raw_input("Enter word:")
if word[0] in "aeiou":
print word + "yay"
else:
print word[1:] + word[0] + "ay"