Python Comparison Operators || comparison operators in python, comparison operators in python in hindi
Comparison Operators in Python
เคฏे เคฌाเคเคจเคฐी เคเคชเคฐेเคเคฐ्เคธ เคนैं เคो เคฆो เคฎाเคจों เคी เคคुเคฒเคจा เคเคฐเคคे เคนैं เคเคฐ True เคฏा False เคฎें เคชเคฐिเคฃाเคฎ เคฆेเคคे เคนैं।
These are binary operators that compare two values and result in True or False.
- Less Than ( < )
- Less Than or Equals To ( <= )
- Greater Than ( > )
- Greater Than or Equals To ( >= )
- Equals To ( == )
- Not Equals To ( != )
Less Than (<):-
เคเคธ เคเคชเคฐेเคเคฐ เคे เคฌाเคं เคธाเคเคก เคी เคตैเคฒ्เคฏू เคฏเคฆि เคฆाเคं เคธाเคเคก เคी เคตैเคฒ्เคฏू เคธे เคोเคी เคนै เคคो เคชเคฐिเคฃाเคฎ True เคฆेเคคा เคนै เค เคจ्เคฏเคฅा False เคฆेเคคा เคนै। เคชाเคฏเคฅเคจ เคฎें, "less than" เคเคชเคฐेเคเคฐ เคो เคเคฎ-เคธे-เคเคฎ เคिเคน्เคจ (<) เคฆ्เคตाเคฐा เคฆเคฐ्เคถाเคฏा เคाเคคा เคนै। เคเคธเคा เคเคชเคฏोเค เคฆो เคฎाเคจों เคी เคคुเคฒเคจा เคเคฐเคจे เคे เคฒिเค เคिเคฏा เคाเคคा เคนै เคเคฐ เคฏเคฆि เคฌाเคं เคเคฐ เคा เคฎाเคจ เคฆाเคं เคเคฐ เคे เคฎाเคจ เคธे เคเคฎ เคนै เคคो เคฏเคน 'True' เคฒौเคाเคคा เคนै। เคฏเคฆि เคถเคฐ्เคค เคชूเคฐी เคจเคนीं เคนोเคคी เคนै, เคคो เคฏเคน 'False' เคฒौเคाเคคा เคนै।
Returns True if the value on the left side of this operator is less than the value on the right side, otherwise it returns False. In Python, the "less than" operator is denoted by the less-than sign (<). It is used to compare two values and returns `True` if the value on the left is less than the value on the right. If the condition is not met, it returns `False`.
Less Than or Equals To (<=):-
เคเคธ เคเคชเคฐेเคเคฐ เคे เคฌाเคं เคธाเคเคก เคी เคตैเคฒ्เคฏू เคฏเคฆि เคฆाเคं เคธाเคเคก เคी เคตैเคฒ्เคฏू เคธे เคोเคी เคฏा เคฌเคฐाเคฌเคฐ เคนै เคคो เคชเคฐिเคฃाเคฎ True เคฆेเคคा เคนै เค เคจ्เคฏเคฅा False เคฆेเคคा เคนै। เคชाเคฏเคฅเคจ เคฎें, "less than or equals to" เคเคชเคฐेเคเคฐ เคो `<=` เคฆ्เคตाเคฐा เคฆเคฐ्เคถाเคฏा เคाเคคा เคนै। เคเคธเคा เคเคชเคฏोเค เคฏเคน เคांเคเคจे เคे เคฒिเค เคिเคฏा เคाเคคा เคนै เคि เคฌाเคं เคเคฐ เคा เคฎाเคจ เคฆाเคं เคเคฐ เคे เคฎाเคจ เคธे เคเคฎ เคฏा เคเคธเคे เคฌเคฐाเคฌเคฐ เคนै। เคฏเคฆि เคธ्เคฅिเคคि เคธเคค्เคฏ เคนै, เคคो เคฏเคน 'True' เคฒौเคाเคคी เคนै; เค เคจ्เคฏเคฅा, เคฏเคน 'False' เคฒौเคाเคคा เคนै। เคเคช เคฏเคน เคจिเคฐ्เคงाเคฐिเคค เคเคฐเคจे เคे เคฒिเค เคธंเค्เคฏाเคं, เคเคฐ เคฏा เคเค्เคธเคช्เคฐेเคถंเคธ เคी เคคुเคฒเคจा เคเคฐเคจे เคे เคฒिเค `<=` เคเคชเคฐेเคเคฐ เคा เคเคชเคฏोเค เคเคฐ เคธเคเคคे เคนैं เคि เคฌाเคฏां เคเคชเคฐेंเคก เคฆाเคं เคเคชเคฐेंเคก เคธे เคเคฎ เคนै เคฏा เคเคธเคे เคฌเคฐाเคฌเคฐ เคนै।
Returns True if the value on the left side of this operator is less than or equal to the value on the right side, otherwise it returns False. In Python, the "less than or equal to" operator is represented by `<=`. It is used to check if the value on the left is less than or equal to the value on the right. If the condition is true, it returns `True`; otherwise, it returns `False`. You can use the `<=` operator to compare numbers, variables, or expressions to determine if the left operand is less than or equal to the right operand.
Greater Than (>):-
เคเคธ เคเคชเคฐेเคเคฐ เคे เคฌाเคं เคธाเคเคก เคी เคตैเคฒ्เคฏू เคฏเคฆि เคฆाเคं เคธाเคเคก เคी เคตैเคฒ्เคฏू เคธे เคฌเฅी เคนै เคคो เคชเคฐिเคฃाเคฎ True เคฆेเคคा เคนै เค เคจ्เคฏเคฅा False เคฆेเคคा เคนै। เคชाเคฏเคฅเคจ เคฎें, เค्เคฐेเคเคฐ เคฆैเคจ เคเคชเคฐेเคเคฐ เคा เคเคชเคฏोเค เคฆो เคฎाเคจों เคी เคคुเคฒเคจा เคเคฐเคจे เคเคฐ เคฏเคน เคจिเคฐ्เคงाเคฐिเคค เคเคฐเคจे เคे เคฒिเค เคिเคฏा เคाเคคा เคนै เคि เค्เคฏा เคฌाเคฏाँ เคฎाเคจ เคฆाเคँ เคฎाเคจ เคธे เค เคงिเค เคนै। เค्เคฐेเคเคฐ เคฆैเคจ เคเคชเคฐेเคเคฐ เคो ">" เคिเคจ्เคน เคฆ्เคตाเคฐा เคฆเคฐ्เคถाเคฏा เคाเคคा เคนै। เคฏเคฆि เคฌाเคฏां เคเคชเคฐेंเคก เคฆाเคं เคเคชเคฐेंเคก เคธे เคฌเคก़ा เคนै เคคो เคฏเคน `True` เคฒौเคाเคคा เคนै, เคเคฐ เค เคจ्เคฏเคฅा `False` เคฒौเคाเคคा เคนै। เคเคช เคธंเค्เคฏाเคं, เคตेเคฐिเคเคฌเคฒ เคฏा เคเค्เคธเคช्เคฐेเคถเคจ เคी เคคुเคฒเคจा เคเคฐเคे เคเคจเคे เคธाเคชेเค्เคท เคชเคฐिเคฎाเคฃ เคจिเคฐ्เคงाเคฐिเคค เคเคฐเคจे เคे เคฒिเค เค्เคฐेเคเคฐ เคฆैเคจ เคเคชเคฐेเคเคฐ เคा เคเคชเคฏोเค เคเคฐ เคธเคเคคे เคนैं।
Returns True if the value on the left side of this operator is greater than the value on the right side, otherwise it returns False. In Python, the greater than operator is used to compare two values and determine if the left value is greater than the right value. The greater than operator is represented by the ">" symbol. It returns `True` if the left operand is greater than the right operand, and `False` otherwise. You can use the greater than operator to compare numbers, variables, or expressions to determine their relative magnitudes.
Greater Than or Equals To (>=):-
เคเคธ เคเคชเคฐेเคเคฐ เคे เคฌाเคं เคธाเคเคก เคी เคตैเคฒ्เคฏू เคฏเคฆि เคฆाเคं เคธाเคเคก เคी เคตैเคฒ्เคฏू เคธे เคฌเฅी เคฏा เคฌเคฐाเคฌเคฐ เคนै เคคो เคชเคฐिเคฃाเคฎ True เคฆेเคคा เคนै เค เคจ्เคฏเคฅा False เคฆेเคคा เคนै। เคชाเคฏเคฅเคจ เคฎें, เคเคธ เคเคชเคฐेเคเคฐ เคो `>=` เคฆ्เคตाเคฐा เคฆเคฐ्เคถाเคฏा เคाเคคा เคนै। เคเคธเคा เคเคชเคฏोเค เคฏเคน เคांเคเคจे เคे เคฒिเค เคिเคฏा เคाเคคा เคนै เคि เคฌाเคฏां เคเคชเคฐेंเคก เคฆाเคं เคเคชเคฐेंเคก เคธे เคฌเคก़ा เคนै เคฏा เคเคธเคे เคฌเคฐाเคฌเคฐ เคนै। เคฏเคฆि เคธ्เคฅिเคคि เคธเคค्เคฏ เคนै, เคคो เคฏเคน 'True' เคฒौเคाเคคी เคนै; เค เคจ्เคฏเคฅा, เคฏเคน 'False' เคฒौเคाเคคा เคนै।
Returns True if the value on the left side of this operator is greater than or equal to the value on the right side, otherwise it returns False. In Python, the greater than or equals to operator is represented by `>=`. It is used to check if the left operand is greater than or equal to the right operand. If the condition is true, it returns `True`; otherwise, it returns `False`.
Equals To (==):-
เคเคธ เคเคชเคฐेเคเคฐ เคे เคฌाเคं เคธाเคเคก เคी เคตैเคฒ्เคฏू เคฏเคฆि เคฆाเคं เคธाเคเคก เคी เคตैเคฒ्เคฏू เคे เคฌเคฐाเคฌเคฐ เคนै เคคो เคชเคฐिเคฃाเคฎ True เคฆेเคคा เคนै เค เคจ्เคฏเคฅा False เคฆेเคคा เคนै। เคชाเคฏเคฅเคจ เคฎें, "equals to" เคเคชเคฐेเคเคฐ เคा เคเคชเคฏोเค เคธเคฎाเคจเคคा เคे เคฒिเค เคฆो เคฎाเคจों เคी เคคुเคฒเคจा เคเคฐเคจे เคे เคฒिเค เคिเคฏा เคाเคคा เคนै। เคเคธे เคฆोเคนเคฐे เคฌเคฐाเคฌเคฐ เคिเคน्เคจ (`==`) เคฆ्เคตाเคฐा เคฆเคฐ्เคถाเคฏा เคाเคคा เคนै। เคฏเคน เคง्เคฏाเคจ เคฐเคเคจा เคฎเคนเคค्เคตเคชूเคฐ्เคฃ เคนै เคि "เคฌเคฐाเคฌเคฐ" เคเคชเคฐेเคเคฐ (`==`) เคा เคเคชเคฏोเค เคคुเคฒเคจा เคे เคฒिเค เคिเคฏा เคाเคคा เคนै, เคเคฌเคि เคเคเคฒ เคฌเคฐाเคฌเคฐ เคिเคน्เคจ (`=`) เคा เคเคชเคฏोเค เค เคธाเคเคจเคฎेंเค เคे เคฒिเค เคिเคฏा เคाเคคा เคนै เคเคฌ เคเคช เคिเคธी เคตेเคฐिเคเคฌเคฒ เคे เคฒिเค เคฎाเคจ เคฆेเคจा เคाเคนเคคे เคนैं।
Returns True if the value on the left side of this operator is equal to the value on the right side, otherwise it returns False. In Python, the "equals to" operator is used to compare two values for equality. It is represented by a double equals sign (`==`). It's important to note that the "equals to" operator (`==`) is used for comparisons, whereas a single equals sign (`=`) is used for assignment when you want to assign a value to a variable.
Not Equals To (!=):-
เคเคธ เคเคชเคฐेเคเคฐ เคे เคฌाเคं เคธाเคเคก เคी เคตैเคฒ्เคฏू เคฏเคฆि เคฆाเคं เคธाเคเคก เคी เคตैเคฒ्เคฏू เคे เคฌเคฐाเคฌเคฐ เคจเคนीं เคนै เคคो เคชเคฐिเคฃाเคฎ True เคฆेเคคा เคนै เค เคจ्เคฏเคฅा False เคฆेเคคा เคนै। เคชाเคฏเคฅเคจ เคฎें, "not equals to" เคเคชเคฐेเคเคฐ เคो `!=` เคฆ्เคตाเคฐा เคฆเคฐ्เคถाเคฏा เคाเคคा เคนै। เคเคธ เคเคชเคฐेเคเคฐ เคा เคเคชเคฏोเค เคฏเคน เคคुเคฒเคจा เคเคฐเคจे เคे เคฒिเค เคिเคฏा เคाเคคा เคนै เคि เค्เคฏा เคฆो เคฎाเคจ เคเค เคฆूเคธเคฐे เคे เคฌเคฐाเคฌเคฐ เคจเคนीं เคนैं। เคฏเคฆि เคฎाเคจ เคญिเคจ्เคจ เคนैं, เคคो `!=` เคा เคชเคฐिเคฃाเคฎ `True` เคฎिเคฒเคคा เคนै, เคเคฐ เคฏเคฆि เคตे เคฌเคฐाเคฌเคฐ เคนैं, เคคो เคฏเคน `False` เคा เคฎूเคฒ्เคฏांเคเคจ เคเคฐเคคा เคนै।
Returns True if the value on the left side of this operator is not equal to the value on the right side, otherwise it returns False. In Python, the "not equals to" operator is represented by `!=`. This operator is used to compare whether two values are not equal to each other. If the values are different, the expression using `!=` evaluates to `True`, and if they are equal, it evaluates to `False`.

Comments
Post a Comment