Skip to content

Instantly share code, notes, and snippets.

@nattybear
Created May 30, 2017 08:50
Show Gist options
  • Save nattybear/1573619e6022ca69284d6ca1ac913343 to your computer and use it in GitHub Desktop.
Save nattybear/1573619e6022ca69284d6ca1ac913343 to your computer and use it in GitHub Desktop.
[4주차 미션] 자릿수 늘리며 더하기
sum = 0
for i in range(1, 7):
for j in range(i):
sum = sum + (10 ** j)
print(sum)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment