Skip to content

Instantly share code, notes, and snippets.

@umar-ahmed
umar-ahmed / beautiful_idiomatic_python.md
Created August 15, 2017 15:51 — forked from JeffPaine/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!

Transforming Code into Beautiful, Idiomatic Python

Notes from Raymond Hettinger's talk at pycon US 2013 video, slides.

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!

Looping over a range of numbers

for i in [0, 1, 2, 3, 4, 5]:
@umar-ahmed
umar-ahmed / youtube
Created August 18, 2019 19:28 — forked from jacksontong/youtube-api-response.json
youtube-api-response
[
{
"kind": "youtube#searchResult",
"etag": "\"XI7nbFXulYBIpL0ayR_gDh3eu1k/iecMlihzF4qEDkzXsB6TUt81Oqw\"",
"id": {
"kind": "youtube#video",
"videoId": "M4ZoCHID9GI"
},
"snippet": {
"publishedAt": "2018-04-12T16:00:04.000Z",