Skip to content

Instantly share code, notes, and snippets.

@beauvais
Created November 22, 2012 14:07
Show Gist options
  • Save beauvais/4131345 to your computer and use it in GitHub Desktop.
Save beauvais/4131345 to your computer and use it in GitHub Desktop.
def talk_time(argv):
count = 0
remaining = sum(argv)
for i in argv:
print("time elapsed: " + str(count))
count += i
remaining -= i
print("after " + str(i) + "time remaining: " + str(remaining) + " ")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment