python insert into beginning of list code example Example: insert at the beginning of array py array.insert(0,var)