CHAINED Operators In Python?? #python #programming #coding

preview_player
Показать описание
This video shows you how to chain operators in Python!

Background Music:
Attribution 4.0 International (CC BY 4.0)
Рекомендации по теме
Комментарии
Автор

good choice of variable names and values

imma
Автор

Immediately went to the comments to find something

LqmKim
Автор

Can’t believe I didn’t notice the choice of variables and syntax. I somehow gained my innocence back and you just took it away just like that

sk_
Автор

I once lost 3 marks in an exam for doing this instead of using AND. Just use AND to make everyone's lives so much easier.

brozorb_gaming
Автор

I’m here for the quality variable names 👍🏼 I definitely approve

benjaminhunt
Автор

Can't stop watching these videos!

RedSW
Автор

only gonna do that when i really need my code to be small because that kinda decreases the readability

EpicNoobx
Автор

Don't try to use this in C and C++, which first evaluate D < O as true (1) and then compare that to 8 (8 == 1) which is false.

DSamp
Автор

Why? this is going to lead to so many juniors putting this in their code causing a second wave of accumulated tech debt for the folks with experience to clean up. Don't use this for anything. Write it so the code is readable and add comments! :)

beardedgaminghero
Автор

This is the most innocent piece of .py I have ever seen

tomsterbg
Автор

Oh, I thought it was saying 8 == D = True, and since True = 1, the whole of 8 == D (which is 1), is less than D (which is 9)

aycoded
Автор

Hello, I'd like to know what theme you are using for visual studio code.. thanks!

Jiggly
Автор

Wrong, It's not just from left to right but it actually follows the precedence of operations.
you can find the table online

tirompoilrene
Автор

Yeah shit like that helps and reduces ifs within ifs

ajlau
Автор

What about something like: 2<x<4?

skvttlez
Автор

people who don't use spaces weird me out..

antxnioo
Автор

I think one use for this that is clear is checking if a value is in a range.

If range_start < value < range_end:

martinhawes
Автор

But what operators would be appropriate with the number 80085?

rtrstck
Автор

Is that actually true or is it just evaluating true<9 (which will also return true)

CorruptMem
Автор

Idk why would I do such thing, it will just make it harder to read

iTZzMeGaTK