#python #anaconda #jupyter-notebook #visual-code #html #css #javascript #http

제목[정지영 교수님 분반] 중간 과제 질문드립니다2021-04-20 18:36
작성자

2 - 3) 에서 "is_leap_year 함수와 month_list 함수를 반드시 모두 활용(호출)하시오."라는 문구가 있습니다.

is_leap_year함수를 간접적으로 호출하는 것도 괜찮은 건가요?

가령, month_list 함수에서 is_leap_year 함수를 호출하기 때문에

how_many_days 함수에서는 month_list 함수만 호출해도

간접적으로 is_leap_year 함수가 호출이 됩니다.

이처럼 how_many_days 함수에 is_leap_year 함수와 month_list 함수 둘 다 들어가야 하는건지

아니면 month_list 함수에서 간접적으로 is_leap_year 함수를 호출하기 때문에

month_list 함수 하나만 들어가도 되는건지 궁금합니다.

댓글