using else with for loops

 for i in ["harish","shiva","robin"]:

    if i=="harish" :
print(i)
break
else:
print("for loop completed properly")

Comments

Popular posts from this blog

Steps taken by a compiler to execute a C program

Tokens in C

Variables and Data Types in C