Among the 30 days in September 2018 (2018/09/01 ~ 2018/09/30), print out the dates that (1) have odd date numbers and (2) are Sundays. 

Assume that we only know the fact that 2018/09/01 is Saturday.  


For example, 2018/09/23 has odd date number 23 and it is Sunday. 

Hint 1: We can use a “for” loop for 1, 2, …, 30. 

Hint 2: We can use an “if” statement to check the above two conditions, for each value from the “for” loop repetition.

  Hint 3: The date numbers of Sundays are 2, 9, 16, … What’s the pattern in these numbers?




문제가 이거구요 9월 한달내에서 특정일이 홀수일인지 짝수일인지랑 무슨요일인지 알려주는 프로그램인데요

예를 들어서 9월 1일은 토요일이고 홀수일입니다 이렇게요




date1 = int('20180901')

date2 = int('20180931')

for x in range(date1, date2):

    if x % 2 == 0:

        print("even number")

    else:

        print("odd number")



이건 제가 억지로 짜본건데 여기서 더 어떡개 해야될지 모르겠어요 도와주십쇼