# Basic Arithmetic in Python

## Arithmetic in Python

Arithmetic operators:

* Addition: +
* Subtraction: -
* Multiplication: \*
* Division: /
* Modulus operator (to get remainder): %

```python
num1 = 3
num2 = 10

answer = num1/num2
print(answer)
# returns 0.3 <-- which is float data type
```

#### Modulus:

```python
print(10 % 3)
# retunrs 1 - i.e Remainder

# As opposed to division
print(10 / 3)
# returns 0.3
```

### Order of operations:

```python
print(10 + 3 * 9 - 4) 
# returns 33
```

Multiplication first, then subtraction then addition


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.arkannis.net/programming/courses/python-pcap-31-03-course/overview-and-introduction/basic-arithmetic-in-python.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
