Member-only story
Python 3: How to Write a Program to Print Out the Days of the Week
With the help of the list constructor, print out the days of the week.
In this article, write a simple program to print out the days of the week using the list data type.
Requirements: Have a basic understanding of programming in regards to loops, arrays, and data types.
You can download the current version of Python (3.12.2): Here.
(https://www.python.org/downloads/)
You can download the current version of Python (3.12.2) with the link below.
(https://www.python.org/downloads/)
The page provides the packages for the operating systems: Windows, Linux, MacOS, etc.
What Is the List Constructor in Python?
The list constructor is the syntax for creating a list. In Python, a list is created with the constructors:
- []
- List().
range() and xrange() can also be used for creating a list, but in regards to integers.
What Is a List?
A list is defined as a dynamic array or sequence.

