> For the complete documentation index, see [llms.txt](https://mikkicoding.mikkipastel.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mikkicoding.mikkipastel.com/python-for-beginner/05-python-comparison.md).

# Comparison

การเปรียบเทียบค่าในภาษา python แบ่งเป็น 4 แบบ ดังนี้

* **logical** : and, or, not, and not เช่น `(len(list) >= 0) and (boo != False)`
* **identity** : is, is not, not เช่น `not (boo)`
* **arithmetic** : >, >=, <, <=, ==, != เช่น `len(list) >= 0`, `boo != False`
* **Null** : None เช่น `list != None`ซึ่งเรื่องนี้นำไปใช้ใน condition statement
