Skip first entry in for loop in python?
python
Solution
To skip the first element in Python you can simply write
for car in cars[1:]:
# Do What Ever you want
or to skip the last elem
for car in cars[:-1]:
# Do What Ever you want
You can use this concept for any `sequence` (not for any `iterable` though).
Problem
In python, How do I do something like: ``` for car in cars: # Skip first and last, do work for rest ```