Promptles
Programming Basics

Library

intermediate

Definition

A collection of ready-made code for one kind of job, such as formatting dates or drawing charts, that your project borrows instead of writing it from scratch. Your code calls a library when it needs it, while a framework sets the structure your code fits into.

In the wild

A reading-list app uses a date library so "2026-10-27" shows up as "Oct 27" without anyone writing that logic by hand.

More from Programming Basics