how to add an item to a list in python

Java
// imports the util arrayliat
import java.util.ArrayList

// creates a new arraylist
public static ArrayList<String> strings = new ArrayList<String>();

// adds an item
strings.add("I am a list item!");list_to_add.append(item_to_add)myList = [1, 2, 3]

myList.append(4)
Source

Also in Java: