It visually groups the statements that belong together, and allows you to quickly see the flow of a program by looking at the indents.
Answer:
The function in Python is as follows:
def sumDig(n):
if n == 1:
return 11
else:
return n*11 + sumDig(n - 1)
Explanation:
This defines the function
def sumDig(n):
This represents the base case (where n = 1)
if n == 1:
The function returns 11, when it gets to the base case
return 11
For every other value of n (n > 1)
else:
This calculates the required sum recursively
return n*11 + sumDig(n - 1)
Answer:
hii
Explanation:
can i get a brainlist thennnnnn??
Answer:
B
Explanation:
give answers next time pls so i can help you!!