# program to add natural num
def main():
    n = 20
    # initialize sum and counter
    sum = 0
    i = 1
    while i <= n:
        sum = sum + i
        i = i+1    # update counter
    # print the sum
    print("The sum is", sum)
    print("\n")
    counter = 0
    # else with while loop
    while counter < 3:
        print("Inside loop")
        counter = counter + 1
    else:
        print("Inside else")

# main execution
if __name__ == '__main__':
    main()

ec78abd525dca436ab27c939d757e1310b4f0c74
<mask token>

def main():
    n = 20
    sum = 0
    i = 1
    while i <= n:
        sum = sum + i
        i = i + 1
    print('The sum is', sum)
    print('\n')
    counter = 0
    while counter < 3:
        print('Inside loop')
        counter = counter + 1
    else:
        print('Inside else')


<mask token>

def main():
    n = 20
    sum = 0
    i = 1
    while i <= n:
        sum = sum + i
        i = i + 1
    print('The sum is', sum)
    print('\n')
    counter = 0
    while counter < 3:
        print('Inside loop')
        counter = counter + 1
    else:
        print('Inside else')


if __name__ == '__main__':
    main()

# program to add natural num
def main():
    n = 20
    # initialize sum and counter
    sum = 0
    i = 1
    while i <= n:
        sum = sum + i
        i = i+1    # update counter
    # print the sum
    print("The sum is", sum)
    print("\n")
    counter = 0
    # else with while loop
    while counter < 3:
        print("Inside loop")
        counter = counter + 1
    else:
        print("Inside else")

# main execution
if __name__ == '__main__':
    main()
