Skip to content

Instantly share code, notes, and snippets.

pyg = "ay"
original = raw_input("Enter a word:")
word = original.lower()
first = str(word)[0]
new_word1 = str(word) + pyg
new_word = word[1:len(word)] + first + pyg
if len(original) > 0 and original.isalpha():
if first == "a" or first == "e" or first == "i" or first == "o" or first == "u":
print str(new_word1)
else:
@DeBomb123
DeBomb123 / gist:5086975
Last active December 14, 2015 12:29
What is wrong with this?
def by_three(n):
if n % 3 == 0:
return n
else:
return False
def cube(n):
return n**3
by_three(9)