Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте 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

Завдання

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.

Рішення

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 1. Розділ 3
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

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

Свайпніть щоб показати меню

Завдання

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.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 1. Розділ 3
single

single

some-alt