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...
By Anonymous on the 9th of Feb 2010 11:31:25 PM
Download |
Raw |
Embed |
Report
def sortData(fileName):
rawData = open(fileName+'.txt')
a=[]
for l in rawData:
b = [0] * 20
x = l.split()
for i in x:
b[int(i)] = b[int(i)]+1
a.append(b)
return a
print sortData("U2Fans")
Submit a correction or amendment below.
[ previous version ] | [ difference ] | Make A New Post