In [25]:
def piglatin():
    print "Playing Pig lating, please enter the word: "
    consants=['b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'y', 'z']
    x=raw_input()
    print x[0]
    if x[0] in consants:
        print x[1::]+x[0]+"ay"
    else:
        print x+"way"

In [26]:
piglatin()


Playing Pig lating, please enter the word: 
example
e
exampleway

In [17]:



ananabay
exampleway

In [ ]: