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