Recent Posts
None | 1 sec ago
None | 2 sec ago
ActionScript 3 | 8 sec ago
None | 9 sec ago
Ruby | 20 sec ago
None | 35 sec ago
None | 43 sec ago
None | 47 sec ago
None | 52 sec ago
None | 1 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
Learn a little bit about the new Pastebin.com on our help page. hide message
By Anonymous on the 9th of Feb 2010 11:31:25 PM Download | Raw | Embed | Report
  1. def sortData(fileName):                        
  2.         rawData = open(fileName+'.txt')
  3.         a=[]
  4.        
  5.         for l in rawData:
  6.                 b = [0] * 20
  7.  
  8.                 x = l.split()
  9.                 for i in x:
  10.                         b[int(i)] = b[int(i)]+1                
  11.                 a.append(b)
  12.         return a                               
  13.  
  14. print sortData("U2Fans")
Submit a correction or amendment below. [ previous version ] | [ difference ] | Make A New Post
To highlight particular lines, prefix each line with @h@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: