breaking and continue in python

 students= ["ram","kishan","radha","radhika"]


for student in students:
    if student =="kishan":
        continue
    print(student)



for student in students:
    if student =="radha":
        break
    print(student)

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.