Skip to content

Instantly share code, notes, and snippets.

@JamesSaxon
Created September 28, 2016 04:19
Show Gist options
  • Save JamesSaxon/b7cedcf6b6201e1e754fdd70289267da to your computer and use it in GitHub Desktop.
Save JamesSaxon/b7cedcf6b6201e1e754fdd70289267da to your computer and use it in GitHub Desktop.
A Broken Python Example
#!/usr/bin/env python
a = 26.2 # miles in a marathon
b = 5 # km in a 5k
km_per_mile = 1.61
print(a, "miles is", a * km_per_mile, "km.")
print(a, "km is", b * mile_per_km, "miles.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment