Skip to content

Instantly share code, notes, and snippets.

@codeperfectplus
Created September 15, 2023 15:10
Show Gist options
  • Save codeperfectplus/ee6845d773257c0641bb91902784a6b6 to your computer and use it in GitHub Desktop.
Save codeperfectplus/ee6845d773257c0641bb91902784a6b6 to your computer and use it in GitHub Desktop.
for i in range(1,int(input())): #More than 2 lines will result in 0 score. Do not leave a blank line also
print( int((i*(pow(10, i) - 1)) / 9 ))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment