# P2.4 Python Arithmetic Operators उदाहरणांसह

Source: https://ravindrabagale.com/mr/datascience/py02-python-variables-and-data-types-explained-for-beginners/p2-4-python-arithmetic-operators-with-examples.html
Language: mr (Marathi with English technical terms)

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

Discount, tax, सरासरी, boxes मोजणं — data कामात रोज गणित लागतं.

हे काय आहे?

+ बेरीज, - वजाबाकी, * गुणाकार, / भागाकार (नेहमी float), // पूर्ण भागाकार, % बाकी आणि ** घात. round(x, 2) दोन दशांशांपर्यंत गोल करतो.

कसं करायचं?

Step 1. Values variables मध्ये ठेवा.
Step 2. योग्य operator वापरा.
Step 3. पैशांसाठी round(x, 2) वापरा.

उदाहरण A: साधा discount

```python
price = 80
discount = price * 0.15
print(price - discount)
```

Output:

```text
68.0
```

याचा अर्थ: Price मधून discount वजा करून final price मिळाली.

उदाहरण B: Items boxes मध्ये वाटा

```python
items = 53
print("Full boxes:", items // 12)
print("Items left:", items % 12)
```

Output:

```text
Full boxes: 4
Items left: 5
```

याचा अर्थ: // किती पूर्ण boxes भरतात ते सांगतो आणि % किती items उरतात ते.

उदाहरण C: पैशांची value round करा

```python
share = 100 / 3
print(share)
print(round(share, 2))
```

Output:

```text
33.333333333333336
33.33
```

याचा अर्थ: round(x, 2) दोन दशांशांपर्यंत गोल करतो, पैशांसाठी हेच हवं.

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

गणिताचा क्रम स्पष्ट करायला brackets वापरा: `(price - discount) * qty`. क्रमाचा अंदाज कधीच लावू नका.
