Skip to content

Instantly share code, notes, and snippets.

@dgouldin
Created March 11, 2011 22:50
Show Gist options
  • Save dgouldin/866726 to your computer and use it in GitHub Desktop.
Save dgouldin/866726 to your computer and use it in GitHub Desktop.
Google Quiz answer
def googol():
power = 100
count = sum([2*9*10**n for n in range(power/2)])
count_sum = sum([int(digit) for digit in str(count)])
return (count, count_sum)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment