Challenge: Parse and Summarize Log Data
Tarea
Swipe to start coding
Given a multiline string representing a system log, your task is to process the log and generate a summary report.
- Extract all lines from the log that contain the word "ERROR".
- Count how many times "ERROR", "WARNING", and "INFO" appear in the log.
- Return a tuple containing the counts for "ERROR", "WARNING", "INFO", and a list of the extracted error lines.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 1. Capítulo 3
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
Genial!
Completion tasa mejorada a 4.76
Challenge: Parse and Summarize Log Data
Desliza para mostrar el menú
Tarea
Swipe to start coding
Given a multiline string representing a system log, your task is to process the log and generate a summary report.
- Extract all lines from the log that contain the word "ERROR".
- Count how many times "ERROR", "WARNING", and "INFO" appear in the log.
- Return a tuple containing the counts for "ERROR", "WARNING", "INFO", and a list of the extracted error lines.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 1. Capítulo 3
single