Challenge: Parse and Summarize Log Data
Compito
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.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 1. Capitolo 3
single
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione
Suggested prompts:
Can you explain this in simpler terms?
What are some examples related to this topic?
How does this information apply to real-world situations?
Fantastico!
Completion tasso migliorato a 4.76
Challenge: Parse and Summarize Log Data
Scorri per mostrare il menu
Compito
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.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 1. Capitolo 3
single