in Python by
Q:
What is the output of the following?

for i in range(5):
    if i == 5:
        break
    else:
        print(i)
else:
    print("Here")

a. 1 2 3 4 5
b. 0 1 2 3 4
c. 0 1 2 3 4 5 Here
d. 0 1 2 3 4 Here

1 Answer

0 votes
by

Answer is a

0 1 2 3 4

Click here to read more about Python
Click here to read more about Insurance

Related questions

0 votes
asked Jun 13, 2019 in Python by Derya
0 votes
asked Jun 13, 2019 in Python by Derya
0 votes
asked Jun 13, 2019 in Python by Derya
0 votes
asked May 17, 2019 in Python by Derya
0 votes
asked May 16, 2020 in Python by AdilsonLima
0 votes
...