if condition in python | Complete Python Tutorial

"if" condition is an important statement in any programming language. It can control the flow of your program.
so python also has " if "statement to control the flow of your program.

syntax of If statement:-


                if(Condition):
                         Everything
                         you write in
                         this indentation will
                         executed if  condition is true
                Other statements
               These are out of the scope of if block
           

Following Source code explain you in a better way:-

Source code for if statement:-


Output of Source code of if statement:-

If This post helps you a little bit then please share this post with your friends and like our page on social media link is given below.For more Computer and programming Related Tips and tricks please subscribe Our youtube channel clickhere

Don't forget to share how you like this Content in the comment below. If you have any doubt or suggestion then please write in the comment section below, we will love to hear from you.

                               thank you.

                                        ( नमस्ते )

                                     🙏   


No comments:

Do not add any link in the comments.
For backlink, contact us.

Powered by Blogger.