ValueError thrown

Missing format specifier at end of string