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.

pastebin private pastebin - collaborative debugging tool What's a private pastebin?

Posted by frymaster on Tue 16th Mar 12:37
download | new post

  1. #!/usr/bin/python
  2.  
  3. from __future__ import division
  4.  
  5. a=100
  6. b=3
  7.  
  8. print a/b
  9. print a//b
  10.  
  11. def divide_and_floor(foo,bar):
  12.         return foo//bar
  13.  
  14. def divide_and_ceil(foo,bar):
  15.         if foo % bar ==0: return foo//bar
  16.         return (foo//bar)+1
  17.  
  18. print divide_and_floor(a,b)
  19. print divide_and_ceil(a,b)

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.

Use syntax highlighting

To highlight particular lines, prefix each line with @@


Remember my settings