pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

Python p.baf.cc pastebin

Posted by juvi on Wed 25th Jan 13:11 (modification of post by view diff)
download | new post

  1. def getRange():
  2.     values = []
  3.     for y in range(1900, 1940):
  4.         if (y % 4 == 0 and y % 100 != 0) or (y % 400 == 0):
  5.             values.append(y)
  6.  
  7.     return values

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:
Post to channel:

To highlight particular lines, prefix each line with @@


Remember me