#31th →4/31th #Feb→ ok co=1 for month in range(12): for day in range(30): day_str=str(day) if day_str[0]+day_str[1]==month: co+=1 print(co)