Skip to main content

Posts

Showing posts from June 4, 2020

Python If ..... Else in hindi (Part -8)

Subscribe * indicates required Email Address *                                                   If -Else If statement conditions check krne ke liye hota hai , agar condition true hai to hm us statement ko run krte hai jo ki if block mai likha rhta hai aur agar conditon false hai to hm else statement ko print karate hai. Syntax: if (condition): Body of if else: Body of else # idhar hm colon use kr rhe hai if statement ke baad jo ki hme if statement ke execution ke baare batata hai # Indentation ka khaas khyl rakhna hai  # Indentation kya hai -  Indentation ek white spaces hai , jo ki ek statement ke baad diye jate hai ye batane ke liye ki baaki jo block of code hai wo is particular statement ko belong krta hai , baki programming language mai hm curly braces ka use krte  hai yahi same chiz batane ke liye jaisa ki ap upar syntax mai dekh skte hai hamne if statement ke baad uske block of code ko spaces ke andar likha ha