Skip to content

Instantly share code, notes, and snippets.

@billtubbs
billtubbs / table.csv
Created Aug 4, 2019
Table data for Medium Post
View table.csv
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
View gist:66c919a148dc708a4e69faabc60a2feb
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 Mar 29, 2020
Excel-vs-Python.ipynb
View Excel-vs-Python.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View hangman.py
#!/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 Jan 19, 2017
Hangman Game - Part 2
View hangman2.py
#!/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"
View hangman1.py
#!/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