---
title: "Discussion on \"Ors & Ands\" | Hashnode"
description: "Discussion on \"Ors & Ands\". I came across Stephen Grupetta’s article that highlights a nuance that I didn’t consider. or and and don't return booleans. They return one of their operands which can be any data type.\nThe Rules\nor:\n\nReturns the first operand when it's truthy\n\nRetur..."
url: "https://hashnode.com/posts/ors-and-ands/696f5ebe8b4e507c9548d514"
---

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

Discussion

# [Ors & Ands](https://blog.danwald.me/ors-and-ands?utm_source=hashnode&utm_medium=feed)

I came across Stephen Grupetta’s article that highlights a nuance that I didn’t consider. or and and don't return booleans. They return one of their operands which can be any data type. The Rules or: Returns the first operand when it's truthy Retur...

Jan 20 · 1 min read · blog.danwald.me  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#logic](https://hashnode.com/tag/logic)
-   [#operators](https://hashnode.com/tag/operators)
-   [#boolean](https://hashnode.com/tag/boolean)

## Written by

[Danny Crasto](https://hashnode.com/@danwald)

@danwald · dubai, uae

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

backend/cloud engineer | mentor | pythonista

I am developer/code-reviewer/debugger/bug-fixer/architect/teacher/builder from dubai, uae

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
