why my code is always printing empty list_of_lists ?? There is nothing wrong with the class and all functions is well implemented
I think that the problem is the way i am using the loop but i can not discover ... What i should do to fix this? as you see i am still beginner
Note: i did not add the Class and the functions here not to be long code.
print("Consider this format=> normal: 20Mar2009(fri), 21Mar2009(sat), 22Mar2009(sun)")
info = input("")
client_type = get_client_type(info) #function that return client type
given_dates = get_given_dates(info) #function that return a list with several dates
day_type = get_day_type(info) #function that process the given date and return "workday" or "holiday"
days_num = len(given_dates)
list_of_lists = []
for date in given_dates:
if day_type == "holiday" and client_type == "normal":
list1=[]
list1.append(Hotel.normal_holiday(hotel1)) #Refere to the class Hotel created before
list1.append(Hotel.normal_holiday(hotel2))
list1.append(Hotel.normal_holiday(hotel3))
list1 = list(map(int, list1))
list_of_lists.append(list1)
print(list_of_lists)
elif day_type == "workday" and client_type == "normal":
pass