0

This block of code keeps repeating and I can't find out why. I am using python 2.7.

def source():
    print "What is the source of the emails that you want to sort?"
    start_source = raw_input("> ")
    print "The source is: \"" + start_source + "\" is this correct? Enter yes/no/y/n"
    answer = raw_input("> ")
    if answer == "no" or "n":
        source()
    return start_source
source()

0 Answers0