Computer Science, asked by sunitagupta54637, 9 months ago

Will a For loop execute without initialization? explain with examples.​

Answers

Answered by ProSaurav
1

Answer:

Yes!

A For loop will only execute if initialisation has not been done.

If initialisation has been done, the software will give an error...

e.g. ->

for x in range(1,10,1):

print(x)

else:

print('Loop has ended')

Answered by ndjaat2007
0

Answer:

Answer is in above pic..............

Attachments:
Similar questions