Command-line input causes SyntaxError

You should use raw_input instead of input, and you don’t have to call str, because this function returns a string itself:

phoneNumber = raw_input("Please enter a phone number: ")

Leave a Comment