Dancing the Code is an original novel written by Paul Leonard and based on the long-running British science fiction television series Doctor Who. It features the Third Doctor, Jo and UNIT. It takes place before the Virgin Missing Adventure Speed of Flight, also by Paul Leonard.