Imagine i have the following 2 lists.
List years- contains all years between 1901 and 2099
years=[1901,...,2099]
List leap years-contais all leap years between 1901 and 2099
I want to creat a non leap_years list that contains all the elements from the first list that are not leap years.
For leap years list i iterate using range(1901,2100,4)
but i cant make the non leap years list. What should be the algorithm?
I actually dont have any code since this is a teoric question.