From 3ddbd938614e7c638c7692f75d5b3639d7c878ec Mon Sep 17 00:00:00 2001 From: kjubik Date: Mon, 6 Jan 2025 17:51:59 +0100 Subject: [PATCH] remove striping newline character in solution scripts --- TaskC00_TODO/solution.py | 1 - TaskC21_TODO/solution.py | 1 - 2 files changed, 2 deletions(-) diff --git a/TaskC00_TODO/solution.py b/TaskC00_TODO/solution.py index 347c733..f3df062 100644 --- a/TaskC00_TODO/solution.py +++ b/TaskC00_TODO/solution.py @@ -2,7 +2,6 @@ import re import sys for line in sys.stdin: - line = line.strip('\n') if re.match(r'^-?[1-9][0-9]*0$|^-?[1-9][0-9]*5$|^0$', line): print('yes') else: diff --git a/TaskC21_TODO/solution.py b/TaskC21_TODO/solution.py index 3999009..e05a996 100644 --- a/TaskC21_TODO/solution.py +++ b/TaskC21_TODO/solution.py @@ -16,7 +16,6 @@ def get_number(c): return result for line in sys.stdin: - line = line.strip('\n') if not re.match(pattern, line): print('no') continue