Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. def przestepne(begin, end):
  2. return list(filter(lambda x: (x%100!=0 and x%4==0) or x%400==0, list(range(begin,end))))
  3. def main():
  4. print(przestepne(2001,2100))
  5.  
  6. if __name__=='__main__':
  7. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement