Skip to content

Commit 5d7ce33

Browse files
authored
Merge pull request #46 from vnaypd/patch-2
Update TriangleQuest.py
2 parents 59d3fad + 24b2d2d commit 5d7ce33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Math/TriangleQuest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
Problem : https://www.hackerrank.com/challenges/python-quest-1/problem
88
'''
99
for i in range(1,input()): #More than 2 lines will result in 0 score. Do not leave a blank line also
10-
print i*((pow(10,i)-1)/(9))
10+
print i*((10**i-1)//9)

0 commit comments

Comments
 (0)