TypeError thrown

Unsupported operand types: string * int