In this we are going to see a program on how to use a continue statement to skip printing the second name in our array and then continue iterating in Python Programming Language.
students = ["Abhishek", "Amit", "Dhiraj", "Saahil"]
for stu in range(0, len(students)):
if stu == 2:
continue
else:
print(students[stu])
print("The current counter is " + str(stu))
print("The Program is Complete")
# Coded By DHIRAJ SHELKE
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP