print 'Welcome to the Pig Latin Translator!'
def pyg():
if name.isalpha and len(name) > 0:
print
elif name.isdigit:
print "This is an integer, not a string!"
name = raw_input()
pyg()
elif len(name) <= 0:
print "You typed nothing!"
name = raw_input()
pyg()
name = raw_input()
pyg()
So I get the error
UnboundLocalError: local variable 'name' referenced before assignment
What I'm trying to do is when my input name
is an integer I enter something to replace name
and run the function again