Share your repls and programming experiences

← Back to all posts
Your Life Counter
DevLab (3)

Simple program to display the number of days and seconds elapsed in your life.

Mainly written as an exercise to show students how libraries can make your life easier, and to showcase an arguably little-known feature in print formatting: the ability to format numerical strings with a comma (or other) separator. It also shows how to supply default values for input.

This program may have existential side effects. Time is ticking.