Skip to content

Instantly share code, notes, and snippets.

@tsuyoshicho
Last active August 29, 2015 14:21
Show Gist options
  • Select an option

  • Save tsuyoshicho/a6472f320e96ab59d6e6 to your computer and use it in GitHub Desktop.

Select an option

Save tsuyoshicho/a6472f320e96ab59d6e6 to your computer and use it in GitHub Desktop.
お題「数字を使わずに、1から10まで和を、出力するコードを書いてください」
#!env python
#-*- coding: utf-8 -*-
# see http://togetter.com/li/821309
import sys
length = len('ABCDEFGHIJK')
print sum(range(length))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment