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

bookChallenge: Parse and Summarize Log Data

Tehtävä

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.

Ratkaisu

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 3
single

single

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

close

bookChallenge: Parse and Summarize Log Data

Pyyhkäise näyttääksesi valikon

Tehtävä

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.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 3
single

single

some-alt