KOTA ITO

Generation

code to explanationFri, 16 Dec 2022

def get_survey_period(text): start = text.find('調査対象期間:') + len('調査対象期間:') end = text.find('〜', start) return text[start : end]

The function get_survey_period takes a string text as the argument and returns the period of the survey.

Questions about programming?Chat with your personal AI assistant