How you add an element to the list. What syntax will add the string, “Porsche”, to the list?

Answered
I have created a list in Python like this:

  mylist = []

I want to add an element to the list. What syntax will add the string, “Porsche”, to the list?

Asked on September 15, 2017 in Python.
Add Comment