An ordered set of instructions. It reads input, follows rules, and produces output.
Loading...
Loading...
Workspace
language design teaching macros and Lisp style tools
Definition first
Racket is a programming language for writing exact instructions, often used for language design teaching macros and Lisp style tools. Start with one mental model: input goes through steps and becomes output.
main.rktRun racket main.rktHabit Use small expressions and test transformations in the REPLAn ordered set of instructions. It reads input, follows rules, and produces output.
A value is data. A variable is the name you use to hold and reuse that data.
A named piece of work. It takes input, does one job, and can return a result.
Racket is the place that actually runs code from main.rkt.
First readable code
(displayln 42)
Output 42Language lineage
See where Racket comes from, which languages feel close, and what to learn next.
Zero base path
Question bank
Pick a stage or search across the open programming bank. Jump straight to the matching drill.
Racket question 1. Choose the statement that matches printing a value.
Racket question 2. Choose the statement that matches naming a value.
Racket question 3. Choose the statement that matches reusable function.
Racket question 4. Choose the statement that matches basic collection.
Racket question 5. Choose the statement that matches printing a value.
Racket question 6. Choose the statement that matches naming a value.
Racket question 7. Choose the statement that matches reusable function.
Racket question 8. Choose the statement that matches basic collection.
Racket question 9. Choose the statement that matches printing a value.
Racket question 10. Choose the statement that matches naming a value.
Racket question 11. Choose the statement that matches reusable function.
Racket question 12. Choose the statement that matches basic collection.
Racket question 13. Choose the statement that matches printing a value.
Racket question 14. Choose the statement that matches naming a value.
Racket question 15. Choose the statement that matches reusable function.
Racket question 16. Choose the statement that matches basic collection.
Racket question 17. Choose the statement that matches printing a value.
Racket question 18. Choose the statement that matches naming a value.
Multiple choice
Racket question 1. Choose the statement that matches printing a value.
(displayln 42)
Reference
racket main.rktentry point output syntax displayln
(displayln 42)
variables assignment types define
(define total 42) (displayln total)
function collection List
(define (add a b) (+ a b)) (define scores (list 40 2)) (displayln (length scores))