Mark As Completed Discussion

Let's test your knowledge. Click the correct answer from the options.

Given the Python list interests = ['Computer Science', 'Programming', 'AI', 'Finance'], how will you add 'Data Structures' to this list and reverse its order?

Click the option that best answers the question.

  • interests.append('Data Structures'); interests.reverse()
  • interests + 'Data Structures'; interests = interests[::-1]
  • interests = ['Data Structures'] + interests; interests.reverse()
  • interests += ['Data Structures']; interests = list(reversed(interests))