wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

To-Do List In LISP

profile
Nareen Ansari
Jul 16, 2025
1 Like
0 Discussions
1 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

Street foods

Blog banner

Is Pursuing a Dance Career in India Worth it?

Blog banner

Health and fitness

Blog banner

OS PROCESS DESCRIPTION AND CONTROL-SARVAGYA JALAN

Blog banner

Development Of Modern Operating System

Blog banner

Introduction to Solidity Programming for Blockchain Development

Blog banner

Virtual memory

Blog banner

File Sharing

Blog banner

Boxing

Blog banner

Instagram

Blog banner

How to use open SSL for web server - browser communication

Blog banner

What is a Dumpster Diving Attack?

Blog banner

How Laughing Gas Makes Your Dental Visit So Much Easier

Blog banner

AI and Cyber Security

Blog banner

All you need to know about Website Traffic

Blog banner

Career v/s Job : Choose your passion

Blog banner

OS Evolution Achievements

Blog banner

Ethical Issues in Data Science and Role of Data Science in Smart Cities

Blog banner

Modern operating systems (OS)

Blog banner

Deadlocks in Operating Systems

Blog banner

Disk Management

Blog banner

Microsoft Word

Blog banner

Pooja Silver

Blog banner

5 Powerful Mindset Shifts To Make 2026 Your Breakthrough Year

Blog banner

Blockchain in IoT Applications

Blog banner

What is HTML?

Blog banner

A-B-C of Networking: Part-3 (Topology [Ring, Tree, Mesh])

Blog banner

The Golden Temple , Amritsar

Blog banner

What is Virtual Memory

Blog banner

Blockchain Transactions

Blog banner

Service stratergy principles

Blog banner

How I use google in my daily life

Blog banner

What is Minting & Mining

Blog banner

Modern Operating System

Blog banner

The Future of Cybersecurity: Trends, Challenges, and Strategies

Blog banner

Cycling

Blog banner

CyberSecurity Color Wheel

Blog banner

CYBERPEACEKEEPING: NEW WAYS TO PREVENT AND MANAGE CYBERATTACKS

Blog banner

Computer Security

Blog banner

IT Service Continuity Management

Blog banner

Os Virtual Memory

Blog banner

INTERNET SECURITY

Blog banner