livepython.net

70. Python Program to Create and Print a List

EasyLists

Overview

Make your first list, print it, and count its items.

Problem Statement

Store the subjects "Maths", "Science", "English" and "Art", in that order, in a list called subjects. Print the list, then print how many subjects it holds, using len():

['Maths', 'Science', 'English', 'Art']
Subjects: 4

Input

No input is required for this question.

Output

['Maths', 'Science', 'English', 'Art']
Subjects: 4

Learn this firstChapter 9 · Python Lists: Create, Print and Count Items
solution.py
# write your code here

EXPECTED OUTPUT

1['Maths', 'Science', 'English', 'Art']
2Subjects: 4

YOUR OUTPUT

Press Run to see your output here. Lines are compared with the expected output.