Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def przestepne(begin, end):
- return list(filter(lambda x: (x%100!=0 and x%4==0) or x%400==0, list(range(begin,end))))
- def main():
- print(przestepne(2001,2100))
- if __name__=='__main__':
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement