# P5.1 Python Comparison Operators (==, !=, >, <, >=, <=)

Source: https://ravindrabagale.com/mr/datascience/py05-python-if-elif-else-statements-with-real-examples/p5-1-python-comparison-operators.html
Language: mr (Marathi with English technical terms)

हे का शिकायचं?

प्रत्येक निर्णय एका प्रश्नापासून सुरू होतो: amount 500 पेक्षा जास्त आहे का?

हे काय आहे?

Comparison चं उत्तर नेहमी True किंवा False येतं. == म्हणजे बरोबर आहे का (= नाही!), != म्हणजे वेगळं आहे का.

कसं करायचं?

Step 1. दोन values ठरवा.
Step 2. Operator निवडा.
Step 3. True/False उत्तर वाचा.

उदाहरण A: साधे comparisons

```python
minutes = 42
print(minutes > 30)
print(minutes == 30)
```

Output:

```text
True
False
```

याचा अर्थ: प्रत्येक comparison चं उत्तर True किंवा False आलं.

उदाहरण B: Text compare करा

```python
method = "UPI"
print(method == "UPI")
print(method == "upi")
```

Output:

```text
True
False
```

याचा अर्थ: Text compare करताना case महत्त्वाचा असतो: "Pune" आणि "pune" वेगळे.

रवींद्र बागले यांची tip

`=` value ठेवतो, `==` तुलना करतो. दोघांची गल्लत ही beginners ची नंबर एक चूक आहे.
