From 48978184b077ca980481cc2aa7e9fd0c37bf0f5c Mon Sep 17 00:00:00 2001 From: Alexey Merkulov Date: Wed, 24 Mar 2021 15:28:06 +0300 Subject: [PATCH] [IFT] Adjust debug lesson for Python 2.7 GitOrigin-RevId: 8362390b6dead28e8c25a77012f3f9b46f003b9c --- .../python/ift/lesson/run/PythonRunLessonsUtils.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/python-features-trainer/src/com/jetbrains/python/ift/lesson/run/PythonRunLessonsUtils.kt b/python/python-features-trainer/src/com/jetbrains/python/ift/lesson/run/PythonRunLessonsUtils.kt index 6f61facd3d6d..568b0117fb5f 100644 --- a/python/python-features-trainer/src/com/jetbrains/python/ift/lesson/run/PythonRunLessonsUtils.kt +++ b/python/python-features-trainer/src/com/jetbrains/python/ift/lesson/run/PythonRunLessonsUtils.kt @@ -7,7 +7,7 @@ object PythonRunLessonsUtils { const val demoConfigurationName = "sandbox" val demoSample = parseLessonSample(""" - def find_average(value: list): + def find_average(value): check_input(value) result = 0 for s in value: @@ -23,12 +23,12 @@ object PythonRunLessonsUtils { return int() - def check_input(value: list): + def check_input(value): if (value is None) or (len(value) == 0): raise ValueError(value) - def remove_quotes(s: str): + def remove_quotes(s): if len(s) > 1 and s[0] == "'" and s[-1] == "'": return s[1:-1] return s