Skip to content

Instantly share code, notes, and snippets.

@billtubbs
billtubbs / table.csv
Created August 4, 2019 21:57
Table data for Medium Post
Spreadsheets Programming Languages
Data-centric Object-oriented
Spatial Linear
Visual Text-based
Manual Automatic
Error-prone Repeatable
Hard to reconfigure Easier to reuse
Quick results Upfront time investment
Limited capacity Large data sets
@billtubbs
billtubbs / Excel-vs-Python.ipynb
Last active March 29, 2020 02:40
Excel-vs-Python.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@billtubbs
billtubbs / hangman.py
Created January 19, 2017 05:36
Hangman Game
#!/usr/bin/env python
# PRACTICE PYTHON script
# Part 1. Pick Word
# Part 2. User guesses letters until they get it right
# Part 3. Limit incorrect guesses and allow repeated games
# http://www.practicepython.org/exercise/2016/09/24/30-pick-word.html
import random
SOWPODS_FILE = "sowpods.txt"
@billtubbs
billtubbs / hangman2.py
Created January 19, 2017 05:03
Hangman Game - Part 2
#!/usr/bin/env python
# PRACTICE PYTHON script
# Part 1. Pick Word
# Part 2. User guesses letters until they get it right
# http://www.practicepython.org/exercise/2016/09/24/30-pick-word.html
import random
SOWPODS_FILE = "sowpods.txt"
#!/usr/bin/env python
# PRACTICE PYTHON script 'Pick Word'
# http://www.practicepython.org/exercise/2016/09/24/30-pick-word.html
import random
SOWPODS_FILE = "sowpods.txt"
def random_word(filename=SOWPODS_FILE):
"""Returns a random word from a local