wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

To-Do List In LISP

profile
Nareen Ansari
Jul 16, 2025
1 Like
0 Discussions
4 Reads

This program allows a user to manage a simple to-do list. The program does:

  1. Add tasks
  2. View tasks


Program:


(defvar *todo-list* '())


(defun add-task ()

(format t "Enter new task: ")

(let ((task (read-line)))

(push task *todo-list*)

(format t "Task added successfully.~%")))


(defun view-tasks ()

(if (null *todo-list*)

(format t "No tasks in the list.~%")

(progn

(format t "~%--- To-Do List ---~%")

(let ((i 1))

(dolist (task (reverse *todo-list*))

(format t "~A. ~A~%" i task)

(incf i))))))


(defun todo-menu ()

(loop

(format t "~%--- To-Do Menu ---~%")

(format t "1. Add Task~%")

(format t "2. View Tasks~%")

(format t "3. Exit~%")

(format t "Choose an option: ")

(let ((choice (read)))

(case choice

(1 (add-task))

(2 (view-tasks))

(3 (progn (format t "Exiting...~%") (return)))

(t (format t "Invalid option.~%"))))))


;; Start the to-do list manager

(todo-menu)



Output:


Comments ()


Sign in

Read Next

Festive Ethnic Wear Guide: Patola-Inspired Looks for Every Celebration

Blog banner

WHAT IS TWITTER AND HOW DOES IT WORK

Blog banner

Fashion marketing in india

Blog banner

Carrot Pickle With Raisins (lagan Nu Achar)

Blog banner

Why Every Preschooler Learns at Their Own Pace?

Blog banner

Virtual Machine

Blog banner

Some web vulnerabilities

Blog banner

Travel: Everything Everywhere!

Blog banner

A-B-C of Networking: Part-3 (Topology [Bus & Star])

Blog banner

Components of GIS

Blog banner

You'll get to know about Pankaj Negi

Blog banner

Title: Modern Operating Systems: Powering the Digital Era

Blog banner

VIRTUAL MACHINE

Blog banner

Deadlock and Starvation

Blog banner

MoSCoW METHOD IN DATA SCIENCE

Blog banner

Importance of modern technology era

Blog banner

Memory heirchy

Blog banner

Getting into Anime

Blog banner

Volatile Memory & Non-Volatile Memory Explained

Blog banner

RAID

Blog banner

Little Habits, Big Impact: Daily Preschool Routines That Shape the Future

Blog banner

File Management

Blog banner

virtual memory

Blog banner

USPS mail

Blog banner

Tiranga - Abbas Haveliwala

Blog banner

Student Grade Calculator in LISP

Blog banner

JIRA SOFTWARE

Blog banner

Benefits of yoga and meditation

Blog banner

Virtual Machine

Blog banner

internet email and it's applications

Blog banner

Crypto tax evasion

Blog banner

Constrains in service design

Blog banner

The War With Cold On Earth

Blog banner

Virtual Memory

Blog banner

Music

Blog banner

City of Mumbai (Bombay):

Blog banner

Email Privacy

Blog banner

Guidelines for a Low sodium Diet.

Blog banner

Embracing the power of Modern Machine UNIX

Blog banner

Deadlock in operating system

Blog banner

Career v/s Job : Choose your passion

Blog banner

How to write a cover letter

Blog banner