---
title: "Discussion on \"Python Cool Tricks - How to use logical and arithmetic operators together\" | Hashnode"
description: "Discussion on \"Python Cool Tricks - How to use logical and arithmetic operators together\". 1. Connection between logical (boolean) and arithmetic operators\n\nWhen boolean values ​​(or boolean expressions within parentheses) are used in an arithmetic expression, Python converts them to integers, and the False value to 0 and the True value to..."
url: "https://hashnode.com/posts/python-cool-tricks-how-to-use-logical-and-arithmetic-operators-together/65627a696118a9a742c360b3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Python Cool Tricks - How to use logical and arithmetic operators together](https://bulog.hashnode.dev/python-cool-tricks-how-to-use-logical-and-arithmetic-operators-together?utm_source=hashnode&utm_medium=feed)

1\. Connection between logical (boolean) and arithmetic operators When boolean values ​​(or boolean expressions within parentheses) are used in an arithmetic expression, Python converts them to integers, and the False value to 0 and the True value to...

Nov 25, 2023 · 8 min read · bulog.hashnode.dev  
Updated Nov 27, 2023  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#python3](https://hashnode.com/tag/python3)
-   [#python-beginner](https://hashnode.com/tag/python-beginner)
-   [#python-turtle](https://hashnode.com/tag/python-turtle)
-   [#python-tutorial](https://hashnode.com/tag/python-tutorial)
-   [#python-tutorial-for-beginners](https://hashnode.com/tag/python-tutorial-for-beginners)

## Written by

[Miodrag Golubović](https://hashnode.com/@Bulog)

@Bulog · Lazarevac, Serbia

  
[View profile](https://hashnode.com/@Bulog)

Python forever

Electrical engineer. He programs in several programming languages. Python because it's relatively lightweight, calculates with very large numbers, has great support and tons of pre-built stuff that you just need to include in your program.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
