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