> For the complete documentation index, see [llms.txt](https://jasonchang-ccs.gitbook.io/hello-python-tutorial/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jasonchang-ccs.gitbook.io/hello-python-tutorial/0-2/2.md). Agents can also search and read this documentation through its [MCP server](https://jasonchang-ccs.gitbook.io/hello-python-tutorial/~gitbook/mcp).

# Relational Operator

## Relational Operator

### 關係運算子

關係運算子有六個

| 運算子 | 解釋   | 範例   |
| --- | ---- | ---- |
| ==  | 等於   | 1==1 |
| !=  | 不等於  | 2!=1 |
| >   | 大於   | 2>1  |
| <   | 小於   | 1<2  |
| >=  | 大於等於 | 2>=1 |
| <=  | 小於等於 | 1<=1 |

## 範例

```python
print(1==1)
print(1<=1)
print('hello' == 'hello')
print('hello' == 123)
print('123' == 123)
print((1==1) and (1>=1))
```
