Index out of Range

content_ratings = [‘4+’, ‘9+’, ‘12+’, ‘17+’]
numbers = [4433, 987, 1155, 622]
#content_rating_numbers = [ [‘4+’, ‘9+’, ‘12+’, ‘17+’], [4433, 987, 1155, 622] ]

content_rating_numbers =
content_rating_numbers[0].append(content_ratings)
content_rating_numbers[1].append(numbers)

Hi @aryaa5541
When you want to add an item to the end of the list, you directly apply the append() method without needing to specify an index. Your code should look like this

content_ratings = [‘4+’, ‘9+’, ‘12+’, ‘17+’]
numbers = [4433, 987, 1155, 622]
#content_rating_numbers = [ [‘4+’, ‘9+’, ‘12+’, ‘17+’], [4433, 987, 1155, 622] ]

content_rating_numbers =[]
content_rating_numbers.append(content_ratings)
content_rating_numbers.append(numbers)