Python Tutorial 07: Comparison using the If statement in Python
To compare between two values, we need to write an if statement. There are three types of if statements Simple if statment if-else statement it-elif statement Following example illustrated the difference between all three statements Following is our results: Simple if statement Following is the syntax of a simple if statement If (Condition) … Read more