Rosetta Code/Rank languages by popularity: Difference between revisions

removed semicolon, ignore this. (This happens when you learn C++.)
(added python fail-proof solution)
(removed semicolon, ignore this. (This happens when you learn C++.))
Line 463:
langs = json.load(urllib.urlopen("http://www.rosettacode.org/w/api.php?\
action=query&list=categorymembers&cmtitle=Category:Programming_Languages\
&cmlimit=500&format=json"));
 
titles = [i['title'] for i in langs['query']['categorymembers']]
Anonymous user