Skip to content

Instantly share code, notes, and snippets.

@mfirry
Created December 5, 2018 11:18
Show Gist options
  • Save mfirry/fdc38abadcc574635419bb4898d5ee02 to your computer and use it in GitHub Desktop.
Save mfirry/fdc38abadcc574635419bb4898d5ee02 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
from __future__ import print_function, absolute_import, unicode_literals, division
with open ("input.txt") as f:
xs = f.read().strip().split("\n")
vals = [int(x) for x in xs]
vals |> sum |> print
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment