Programming with Python

  1. Home
  2. Docs
  3. Programming with Python
  4. Conditional statements in python

Conditional statements in python

In programming languages, conditional statements are used to perform different computations or actions depending on whether a condition evaluates to true or false.

Conditional statements usually use comparison operators:-

  • == equals to
  • != not equal to
  • >= greater than or eqal to
  • <= less than or equal to
  • > greater than
  • < less than

Articles

Was this article helpful to you? Yes No

How can we help?