Complete the code to create a list of numbers from 1 to 5.
numbers = [[1]]The correct way to create a list with specific elements is to use square brackets and separate the elements with commas.
Complete the code to access the third element in the list named 'fruits'.
third_fruit = fruits[[1]]List indexes start at 0, so the third element is at index 2.
Fix the error in the code to add the number 10 to the end of the list 'scores'.
scores.[1](10)
The append method adds a single element to the end of a list.
Fill both blanks to create a list of squares for numbers 1 to 5.
squares = [x[1]2 for x in range(1, [2])]
Use the exponent operator ** to square numbers. The range function should go up to 6 to include 5.
Fill all three blanks to create a dictionary with words as keys and their lengths as values, only for words longer than 3 letters.
lengths = { [1] : [2] for [3] in words if len([3]) > 3 }len(words) which is the length of the whole list, not each word.The dictionary comprehension uses word as the key, len(word) as the value, and iterates over words with the variable word. The condition filters words longer than 3 letters.