loading...

Discussion on: Daily Challenge #272 - Printer Errors

Collapse
diegobarros0701 profile image
Diego Barros

Ruby

def printer_error(colors)
  "#{colors.scan(/[n-z]/i).length}/#{colors.length}"
end