Hi Stephanie, the function should be defined first, and used after. So put it before main().
Also, "if '@' not in email and '.' not in email:" seems to be erroneous. You want both be present; this is an AND if you state it and becomes OR when you deny. if '@' not in email or '.' not in email: In the present form your if comes true only when none of @ and . occur in the string. _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor