prob20

mail@pastecode.io avatar
unknown
python
7 months ago
674 B
15
Indexable
Never
days = ["Mon", "Tue", "Wed", "Thu", "Fri"]

tasks_for_days = {}


for day in days:

    n_tasks = int(input(f"How many tasks do you have for {day}? "))
    
    tasks = []
    
    for i in range(n_tasks):
        task_name = input(f"Task number {i + 1} for {day}: ")
        tasks.append(task_name)

    tasks_for_days[day] = tasks

current_day = input("Which day is it? (Mon, Tue, Wed, Thu, Fri): ")

if current_day in tasks_for_days and tasks_for_days[current_day]:
    print(f"Here is your list of tasks for {current_day}:")
    for task in tasks_for_days[current_day]:
        print(task)
else:
    print(f"No tasks listed for {current_day}.")