Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara Challenge: Parse and Summarize Log Data | Automating Everyday Engineering Tasks
Python for Automation Engineers

bookChallenge: 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?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 3
single

single

Chieda ad AI

expand

Chieda ad AI

ChatGPT

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?

close

bookChallenge: 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

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 3
single

single

some-alt