python for loop skip first code example

Example 1: python loop through list ignore first

for car in cars[1:]:
    # Do What Ever you want

Example 2: python ignore first value in generator

itercars = iter(cars)
next(itercars)
for car in itercars:
    # do work

Example 3: how to loop through a list and skip first element in c#

foreach(var item in list.Skip(1))
{
    System.Diagnostics.Debug.WriteLine(item.ToString());
}
//If you want to skip any other element at index n, you could write this:

foreach(var item in list.Where((a,b) => b != n))
{
    System.Diagnostics.Debug.WriteLine(item.ToString());
}