insert at beginning of a list in pythoon code example Example: insert at the beginning of array py array.insert(0,var)