Instantly share code, notes, and snippets.
- Reda
BartoszCki /beautiful_idiomatic_python.md
Last activeMay 18, 2018 12:38 — forked fromJeffPaine/beautiful_idiomatic_python.md
Transforming Code into Beautiful, Idiomatic Python: notes from Raymond Hettinger's talk at pycon US 2013. The code examples and direct quotes are all from Raymond's talk. I've reproduced them here for my own edification and the hopes that others will find them as handy as I have!BartoszCki /suma.rb
CreatedJuly 4, 2016 13:14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
tab=[] | |
10.timesdo | |
tab <<rand(10) | |
end | |
putstab | |
suma=0 | |
tab.each{|i|suma=suma+i} | |
putssuma |