DEV Community

Cover image for A little codecademy noob project :
Mathew Jeong
Mathew Jeong

Posted on

A little codecademy noob project :

My first actual project from the scratch.

It's for my ADHD, where it asks user's name, then it will ask me to type all the tasks I want to do, once everything is done, program will compliment me hahaha.

Image description


def things_to_do():
    todo_list = []

    while True:
        todo = input("Enter things to do for today (or type 'done' to exit): ")
        if todo.lower() == "done":
            break
        todo_list.append(todo)

    print("Your todo list is:", todo_list)
    return todo_list

def done_list(todo_list):
    done_list = []

    while todo_list:
        tasks = input(f"Enter item to move to done list ({todo_list}): ")
        if tasks.lower() == "done":
            break
        elif tasks not in todo_list:
            print("Task is not in todo list, try again")
        else:
            todo_list.remove(tasks)
            done_list.append(tasks)
            print(f"You've finished a task : {tasks} ")

        if not todo_list:
            break

    print("""

    Good job, you've become a step closer to be a better human being!


    """)

from datetime import date
print("""  
###    ###    ##########  ##    ##      ###
###    ###    ###          ##  ##     ##  ##
###    ###    ###           ####     ##    ##
##########    ##########     ##     ## #### ##
###    ###    ###            ##    ##        ##    
###    ###    ###            ##   ##          ##
###    ###    ##########     ##  ##            ## 
""")
today = date.today()
print("Hello, today's date is:", today.strftime("%d %B, %Y"))
name = input("Hello, What's your name? ")
print("Heya,", name )

todo_list = things_to_do()
done_list(todo_list)

Enter fullscreen mode Exit fullscreen mode

Top comments (0)