Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Ruby: A great language for shell scripts. Parent comment
from string import capwords result = capwords(string)
The file example you gave could also be turned into a dict comprehension if desired. I’m on mobile, but I think this would work.
result = { f:os.path.getsize(f) for f in glob.glob(“*”) if os.path.isfile(f) }
There are no comments on this comment yet.
The file example you gave could also be turned into a dict comprehension if desired. I’m on mobile, but I think this would work.