Exit for loop in Python | Break and Continue statements

preview_player
Показать описание
#exit #for #loop #python

Рекомендации по теме
Комментарии
Автор

Sir how to continue after 2 nos e.g 1, 2, 3, , 4, 5
1 and 3

ShahSahil-dkfh
Автор

Hello thanks for your video
here is my code i am using for loop
students=["Dan", "Neuville", "Sam", "joe"]
for student in students:
print(student)
if student=="Sam":
break
print(student)
I am getting indentation error.

HustleAcademy-uy
Автор

I did a range for loop and i did
If B !=A or B !=B or B != AB:
Break
Else:
Print("somthing")
And when i run it and writing one of the things above its still breaking, i dont understand why

carl