What is the Correct Way to Write if statement in Python

Answer

A Python if statement evaluates whether a condition is equal to true or false. The statement will execute a block of code if a specified condition is equal to true. Otherwise, the block of code within the if statement is not executed. We have declared a variable called health.

health = "not ok"

if  health == "not ok":
	print("get well soon dear")

All subclass Questions

Ask your interview questions on subclass

Write Your comment or Questions if you want the answers on subclass from subclass Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---