The iterator (it) points to the first element in the vector (cars.begin()) and the loop continues as long as it is not equal to cars.end(). The increment operator (++it) moves the iterator to the next element in the vector. The dereference operator (*it) accesses the element the ...
As you have learned in thePython Classes/Objectschapter, all classes have a function called__init__(), which allows you to do some initializing when the object is being created. The__iter__()method acts similar, you can do operations (initializing etc.), but must always return the itera...