home   Archives  About  Etc  Authors

 █████╗ ██████╗  ██████╗██╗  ██╗██╗██╗   ██╗███████╗
██╔══██╗██╔══██╗██╔════╝██║  ██║██║██║   ██║██╔════╝
███████║██████╔╝██║     ███████║██║██║   ██║█████╗ 
██╔══██║██╔══██╗██║     ██╔══██║██║╚██╗ ██╔╝██╔══╝
██║  ██║██║  ██║╚██████╗██║  ██║██║ ╚████╔╝ ███████╗
╚═╝  ╚═╝╚═╝  ╚═╝ ╚═════╝╚═╝  ╚═╝╚═╝  ╚═══╝  ╚══════╝
  ███████╗███████╗██╗   ██╗███████╗██████╗ 
  ██╔════╝██╔════╝██║   ██║██╔════╝██╔══██╗
  █████╗  █████╗  ██║   ██║█████╗  ██████╔╝
  ██╔══╝  ██╔══╝  ╚██╗ ██╔╝██╔══╝  ██╔══██╗
  ██║     ███████╗ ╚████╔╝ ███████╗██║  ██║
  ╚═╝     ╚══════╝  ╚═══╝  ╚══════╝╚═╝  ╚═╝
	

/about/archives/#tags/rss

Dictionary Engrams

Author portret should have been here Author portret should have been here Edwin Wenink by Rits Joosten

Selecting user commands in style (Python)

If you write an interactive program that takes user commands as an input, you can select the appropriate action for a given command by going through a sequence of if... else if statements. But if you write in Python, there’s always a cooler way to do things. A method I like personally in this situation is defining a dictionary where the keys …

Read more


See archives for more ...

Latest comments


Edwin replied to 48-vim_fast_creating_and_linking_notes on Saturday, May 23, 2020
nv2lt replied to 48-vim_fast_creating_and_linking_notes on Saturday, May 23, 2020
Edwin replied to 48-vim_fast_creating_and_linking_notes on Monday, May 11, 2020
Robert commented on 48-vim_fast_creating_and_linking_notes on Monday, May 11, 2020
Edwin replied to 48-vim_fast_creating_and_linking_notes on Monday, May 11, 2020

Tags


agre ai annotations arch automation autonomous vehicle beautifulsoup bibliography bibtex big data blog book review boolean brid.gy cli coetzee comments community complexity courses ctags cyber death deepfake democracy derrida design pattern dictionary digital art digitalization diy docker efficiency email emergence encryption epub essay etc ethics example friendship function creep github google gpg hack hackaton healthcare heidegger hermeneutics holism hugo identity implication indieauth indieweb induction intimacy lambda latex linux literature logic machine morality markdown math michel de montaigne microformats2 monte carlo morton neomutt netlify nginx note-taking np object orientation observer ontology p pagerank pandoc paradox partner perceptron pgp phenomenology philosophy portrait privacy probability programming python ransomware raspberry pi recommender reve rice ricoeur russell security south-africa spark ssh staticman strategy surveillance technocracy technology templating terrorism text editing theme theology tilde tmux vim war web scraping webmention.io website workflow writing zettelkasten


An IndieWeb Webring 🕸💍