Answer:
denominations = [1, 5, 10, 25, 50, 100]
Explanation:
In python, a list can be defined by placing the elements of list in square brackets. The syntax is given below
Syntax: some_variable_name = [elements]
The elements of the list can be of any type e.g integers, char, strings or a combination of them.
Examples:
A list of integers
integers = [1, 2, 3, 4, 5]
A list of char
char = ['P', 'Q', 'R']
A list of mixed elements
mixed = [1, 2, 'P', 'Q', "Hello"]
Solution:
To create a list named denominations with elements 1, 5, 10, 25, 50, 100
denominations = [1, 5, 10, 25, 50, 100]
print(denominations) returns [1, 5, 10, 25, 50, 100]
To access any element at specific index
print(denominations[0]) returns the value 1
print(denominations[2]) returns the value 10