Try this: While 1: a = socketthing.recv(1024) if a == "Dead Parrot": sockettthing.send("It's Dead\0") ^^ else: socketthing.send("Silly\0") ^^ Honestly, I've long since forgotten why that works. Maybe someone else here can explain. -- Mando