LOP- ALice - Bob - Charlie

attendees = ["ALice", "Bob", "Charlie"]

for person in attendees:
    print(person)
    choice = input("Is this person attending? (Yes or no): ")
    
    if choice == "yes":
        print("Attendance confirmed")
    elif choice.lower() == "no":
        print("Attendance not confirmed")
    else:
        print("Invalid input. Please answer with 'Yes' or 'No'.")
        print("===========")  

5 إعجابات
names = input("Enter the names of attendees separated by commas: ")  
names_list = names.split(",")  

for name in names_list:  
    print("\n" + name + "\n") 
    coming = input("Is this person attending? (Yes or No): ")  
    if coming == "yes":
        print("Attending confirmed")
    elif coming == "no":
        print("Attendance not confirmed")
    print("===========>")

إعجابَين (2)
Tasks = input("Enter your tasks for today, separated by commas: ").split(",")
done_tasks = []
undone_tasks = []

for today in Tasks:
    check = input(f"Did you finish ({today}) already? (yes/no): ").lower()

    if check == "yes":
        print("Good job")
        done_tasks.append(today)

    elif check == "no":
        undone_tasks.append(today)
        print("Try not to put it off")

    print("=========>")

else:
    progress = input("Do you want to see your progress? (Yes or No): ").lower()
    if progress == "yes":
        print("************ DONE TASKS ************")
        print(done_tasks)
        print("************ ONGOING TASKS ************")
        print(undone_tasks)

إعجابَين (2)