Create a list of 10 numbers between 1 and 10.
Print all the number in the list that are less than or equal to 5.
Output
numbers: [3, 3, 10, 5, 4, 5, 6, 5, 7, 2]
Less than five: [3, 3, 5, 4, 5, 5, 2]
Count the number of times the number 5 occurs in your list.
Output
numbers: [3, 3, 10, 5, 4, 5, 6, 5, 7, 2]
The number 5 occurs 3 times.
Change the value of each number in the list to be the square of itself. Then print the new list.
Output
numbers: [3, 3, 10, 5, 4, 5, 6, 5, 7, 2]
[9, 9, 100, 25, 16, 25, 36, 25, 49, 4]