filmov
tv
Python tutorial - Python Break - Python Continue - Python Pass - How to use it

Показать описание
Free Python tutorial for beginners - Python Break, Continue and Pass in for Loop
#python #pythonprogramming #pythontutorial #pythonforbeginners #youtubechannel #pythoninstallationcomplete #pythonhowtoinstall #pythoninstall #pythondownload #pythontutorialfree #pythonyoutube #pythonenglish #pythonenglish #pythonexecvseval #pythonexec()vseval() #pythonexec() #pythoneval() #youtubeviews #pythonbreak #pythoncontinue #pythonpass
Please Captions on - Python in English, Python in Tamil, Python in Telugu, Python in Malayalam, Python in Chinese, Python in Japanese, Python in German, Python in Hindi, Python in French
-------------------------------------
hello welcome to technology platform so today we are going to see like break continue and pass statement so let's see where we are going to use this kind of things and all let me open either so now first thing is break so break means
it is used to stop the process or stop the iteration
now we are going to see it so I'm going to use it for Loop for in range of 1 comma 10. of colon is missing colon enter then I can say like if I equal to 5 then stop the process break it and then print off I now let's see so once I is 5 we're just stopping the process so it is only printing one two three four like this so This is called break so we just simply break it break it or stop the iteration not going further so we can use this kind of things in the loop so now see this
continue statement now see continuous like keep the process
or skip the iteration
let's see for ien
range of 1 comma 10 colon [Music] and then we can say like if I equal to 5 then continue print of I let's see so the fifth iteration is skipped here one two three four and then six seven eight nine here so this is called continue statement we have to skip some process here and then just continue it so no need to stop it if it is reached 5 five it you can just skip it and continue other Loops this is called and this is where we are using this continuous statement so now pass so pass means it is nothing passes like
do nothing
this is called the pass statement so why we are using it let me tell you here so now for i n range of 110.
no colon and then what I'm going to say here is like I equal to 5 don't do anything just print it I will say like this okay now you have to give it like print statement here but I don't want to do anything if I equal to Phi I don't want to do anything then if I want to print it here it will throw an error message because if statement should contain something otherwise it won't allow to execute the statement or you cannot use if statement here let's see now see this indented block is missing or it is indented is not right like that they are saying but now I need to skip I don't want to do anything I don't want to print anything for example so if you see here what it needed is that we need to print something test or we can say like us something like that we need to do it let's see see this now the execute one two three four five six seven eight nine it is executed but it is printing pass but I don't want to do anything here so this kind of situation what we need to do here is like I need to use if statement but I don't want to print anything I don't want to use it anything so that time we have to use it statement let's see now
one command tense now if I equal to 5 then do nothing so that time we can say like just pass just pass it that's it print this print statement is belongs to First statement now it will print it is printed so because of that we are using this path statement so I am not going to use it anything here but I included if statement so this kind of scenario we have to use it this pass now you know very well so the break statement is like stop the process it just stopped once it reached the I equal to Phi it reaches that satisfied criteria then it should stop and continue means only that particular criteria is mesh then it will skip then pass means if this kind of if statement I don't want to do anything that time I have to use it pass so this is the difference between break continue and pass see you in the next session bye
#python #pythonprogramming #pythontutorial #pythonforbeginners #youtubechannel #pythoninstallationcomplete #pythonhowtoinstall #pythoninstall #pythondownload #pythontutorialfree #pythonyoutube #pythonenglish #pythonenglish #pythonexecvseval #pythonexec()vseval() #pythonexec() #pythoneval() #youtubeviews #pythonbreak #pythoncontinue #pythonpass
Please Captions on - Python in English, Python in Tamil, Python in Telugu, Python in Malayalam, Python in Chinese, Python in Japanese, Python in German, Python in Hindi, Python in French
-------------------------------------
hello welcome to technology platform so today we are going to see like break continue and pass statement so let's see where we are going to use this kind of things and all let me open either so now first thing is break so break means
it is used to stop the process or stop the iteration
now we are going to see it so I'm going to use it for Loop for in range of 1 comma 10. of colon is missing colon enter then I can say like if I equal to 5 then stop the process break it and then print off I now let's see so once I is 5 we're just stopping the process so it is only printing one two three four like this so This is called break so we just simply break it break it or stop the iteration not going further so we can use this kind of things in the loop so now see this
continue statement now see continuous like keep the process
or skip the iteration
let's see for ien
range of 1 comma 10 colon [Music] and then we can say like if I equal to 5 then continue print of I let's see so the fifth iteration is skipped here one two three four and then six seven eight nine here so this is called continue statement we have to skip some process here and then just continue it so no need to stop it if it is reached 5 five it you can just skip it and continue other Loops this is called and this is where we are using this continuous statement so now pass so pass means it is nothing passes like
do nothing
this is called the pass statement so why we are using it let me tell you here so now for i n range of 110.
no colon and then what I'm going to say here is like I equal to 5 don't do anything just print it I will say like this okay now you have to give it like print statement here but I don't want to do anything if I equal to Phi I don't want to do anything then if I want to print it here it will throw an error message because if statement should contain something otherwise it won't allow to execute the statement or you cannot use if statement here let's see now see this indented block is missing or it is indented is not right like that they are saying but now I need to skip I don't want to do anything I don't want to print anything for example so if you see here what it needed is that we need to print something test or we can say like us something like that we need to do it let's see see this now the execute one two three four five six seven eight nine it is executed but it is printing pass but I don't want to do anything here so this kind of situation what we need to do here is like I need to use if statement but I don't want to print anything I don't want to use it anything so that time we have to use it statement let's see now
one command tense now if I equal to 5 then do nothing so that time we can say like just pass just pass it that's it print this print statement is belongs to First statement now it will print it is printed so because of that we are using this path statement so I am not going to use it anything here but I included if statement so this kind of scenario we have to use it this pass now you know very well so the break statement is like stop the process it just stopped once it reached the I equal to Phi it reaches that satisfied criteria then it should stop and continue means only that particular criteria is mesh then it will skip then pass means if this kind of if statement I don't want to do anything that time I have to use it pass so this is the difference between break continue and pass see you in the next session bye