Skip to content

Instantly share code, notes, and snippets.

@thekindlyone
Created July 16, 2014 17:41
Show Gist options
  • Save thekindlyone/2b2133ff280b894ae559 to your computer and use it in GitHub Desktop.
Save thekindlyone/2b2133ff280b894ae559 to your computer and use it in GitHub Desktop.
>>> reduce(lambda x,y: x+y, xrange(int(raw_input('enter first number: ')),int(raw_input('Enter second number: '))+1) )
enter first number: 4
Enter second number: 7
22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment