diff --git a/Math/TriangleQuest.py b/Math/TriangleQuest.py index d51fddc..e9b1cba 100644 --- a/Math/TriangleQuest.py +++ b/Math/TriangleQuest.py @@ -7,4 +7,4 @@ Problem : https://www.hackerrank.com/challenges/python-quest-1/problem ''' for i in range(1,input()): #More than 2 lines will result in 0 score. Do not leave a blank line also - print i*((pow(10,i)-1)/(9)) + print i*((10**i-1)//9)