Answer to Question #221161 in Python for Hari nadh babu

Question #221161

Sum of 1 series


This Program name is Sum of 1 series. Write a Python program to Sum of 1 series, it has two test cases


The below link contains Sum of 1 series question, explanation and test cases


https://drive.google.com/file/d/1M5N-yqq2LYyV05d-ThnD_SQ59nm9b1Vb/view?usp=sharing


We need exact output when the code was run

1
Expert's answer
2021-07-29T23:30:58-0400
N = int(input( " Enter the input: "))


sum = 0


for i in range(N):
  z = (10**(i+1) - 1)/ 9
  sum += z
print(sum)




Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS