Confirmé
4 octobre 2026Trouve le bug : Data Engineering
Un extrait de code. Trouve le bug, ou prouve qu'il n'y en a pas.
python
1def read_error_lines(filepath: str):
2 f = open(filepath, "r")
3 for line in f:
4 if line.startswith("ERROR"):
5 yield line.strip()
6
7def first_ten_errors(filepath: str) -> list:
8 errors = []
9 for line in read_error_lines(filepath):
10 errors.append(line)
11 if len(errors) == 10:
12 break
13 return errorsClique sur les lignes qui posent problème.
Ton verdict
Une tentative par jour. La réponse s'affiche juste après.
Garde ta série
Crée un compte pour conserver ta série et suivre ta progression.