Logical operators in Python are easy ☀️

  Рет қаралды 80,321

Bro Code

Bro Code

Жыл бұрын

#python #code #tutorial
Python logical operators and or not tutorial example explained

Пікірлер: 63
@BroCodez
@BroCodez Жыл бұрын
# logical operators = used on conditional statements # and = checks two or more conditions are True # or = checks if at least one condition is True # not = True if condition is False, and vice versa temp = 20 sunny = True if temp = 30: print("The temperature is bad") else: print("The temperature is good") if not sunny: print("It is cloudy") else: print("It is sunny")
@swaroopgande3481
@swaroopgande3481 8 ай бұрын
Thanks
@GitaAska-is6yz
@GitaAska-is6yz 2 ай бұрын
Bro tutor python 2024
@LoafHigh_
@LoafHigh_ Жыл бұрын
I found your video after months of studying python and I gotta that it's helping me a ton. I am actually realizing that this might not be impossible to learn. Thanks bro code.
@user-pc6bg8kh5v
@user-pc6bg8kh5v 10 ай бұрын
Another helpful video from you!!!
@johnyprigioni859
@johnyprigioni859 10 ай бұрын
Great video, short and simple.
@fiathemuslimah
@fiathemuslimah 9 ай бұрын
Thank you for this video, due to you using the logical operators in real life circumstances, I was able to get my head around it, thanks again!
@paisz3299
@paisz3299 Жыл бұрын
Your vidoes helped me more than my uni
@rongwu8264
@rongwu8264 6 күн бұрын
This made Python really easy to learn
@joncaldwell4753
@joncaldwell4753 Ай бұрын
Well done and thank you
@user-ly5we6xl4v
@user-ly5we6xl4v 8 ай бұрын
NICELY DONE...❤
@Mclffshorts1408
@Mclffshorts1408 5 ай бұрын
Iam form India i am so understanding ur videos thanks for teaching courses form youtube
@iamgourav6256
@iamgourav6256 3 ай бұрын
me to also
@dineshgautam7027
@dineshgautam7027 Жыл бұрын
You are great....
@PSIwolf39
@PSIwolf39 6 ай бұрын
Here's some code I made with logical operators in python: import math obedient = True userInput = int(input(f"pick a number from one to five (no decimal places): ")) if userInput == 2 or userInput == 4: print(f"You picked an even number!") elif userInput > 5 or userInput < 1: print(f"That was not a valid option!") obedient = False else: print(f"You picked an odd number!") userInput = int(input(f"now select a number that is between 12 and 18: ")) if userInput > 12 and userInput < 18: print(f"YAY, YOU DID WHAT I ASKED! (at least one time)") else: print(f"That is not what I asked you to do.") obedient = False if not obedient: print(f"You are disobedient.") else: print(f"Thank you for cooperating with me!") # print(f"HAPPY NEW YEAR!")
@al-cadaalachannel3194
@al-cadaalachannel3194 Жыл бұрын
Grateful 🙏
@wmstram1
@wmstram1 Жыл бұрын
Watched it. Liked it.
@thiagogregory1
@thiagogregory1 Ай бұрын
awesome video
@teebs2721
@teebs2721 Жыл бұрын
cool Bro Code
@henryloyd6175
@henryloyd6175 Жыл бұрын
Thanks bro
@DaniCantBeStopped
@DaniCantBeStopped 7 ай бұрын
Tysm bro im been trying to understand it for a while
@riderix5687
@riderix5687 Ай бұрын
thanks g
@TypicalVole2437
@TypicalVole2437 Жыл бұрын
thanks this was easy
@gamers4dx
@gamers4dx 7 ай бұрын
Bro code. Merry me. Thanks bro helpful video. appreciate it
@inkbythebarrelandpaperbyth6905
@inkbythebarrelandpaperbyth6905 10 ай бұрын
Legend man
@NPC_ghosttown
@NPC_ghosttown 7 ай бұрын
i gotta a question . what if i write the temp is more than 30 or less than 0 , "NOT" logical operator doesn't show in the output .Could anyone explain it to me please ?
@madhukaabhishek4452
@madhukaabhishek4452 Жыл бұрын
Thans Bro
@sofneo4454
@sofneo4454 Жыл бұрын
Love u
@Hallandfan847
@Hallandfan847 Жыл бұрын
IM THIRD OMG, COOL BRO CODE
@Gandalf17
@Gandalf17 Жыл бұрын
idk why i struggle with the NOT operator
@NPC_ghosttown
@NPC_ghosttown 7 ай бұрын
same bro .
@Lit35
@Lit35 8 ай бұрын
the fact that i figured out what "and " was two videos ago😍😍
@earlchesterantonio1581
@earlchesterantonio1581 Жыл бұрын
Can you do some tutorials about rust too? Btw I love you videos man.
@BroCodez
@BroCodez Жыл бұрын
thanks. I'm not sure if people would watch a Rust series tho
@earlchesterantonio1581
@earlchesterantonio1581 Жыл бұрын
Aww, that's sad
@WitherKing007
@WitherKing007 4 ай бұрын
Rust the game or am I just too stupid
@WitherKing007
@WitherKing007 4 ай бұрын
Oh it's a programming language
@roboro3
@roboro3 10 ай бұрын
when i try to make variable = input it gives me....... TypeError: '>=' not supported between instances of 'builtin_function_or_method' and 'int'........ any help please
@reziiuk
@reziiuk 9 ай бұрын
same are you using 3.11
@merouanebelrhiti893
@merouanebelrhiti893 Жыл бұрын
You are the best We need a ethical hacking course !!
@BroCodez
@BroCodez Жыл бұрын
Sorry I'm not an ethical hacker
@merouanebelrhiti893
@merouanebelrhiti893 Жыл бұрын
@@BroCodez ok bro keep up the good work 👏 we are learning from you a lot 🙌 ,im from Morocco by the way 👍 ❤️
@merouanebelrhiti893
@merouanebelrhiti893 Жыл бұрын
@@BroCodezEnglish is my 4th language and i understand everything you explained thanks 😊
@eliseanghel3556
@eliseanghel3556 Жыл бұрын
I agree, we need it asap
@thebid7357
@thebid7357 9 ай бұрын
okay, your channel name is so damn good HAHAHAHAHA!!! Also you explained things very well!
@eureka1251
@eureka1251 Жыл бұрын
Hello, can you do video about spring in java?
@BroCodez
@BroCodez Жыл бұрын
I'm not sure if people would watch it
@eureka1251
@eureka1251 Жыл бұрын
@@BroCodez This is very useful, java developer should know about spring, you want to explain well and clearly!
@big_brein
@big_brein Жыл бұрын
I'm early?!
@Fastdaveone
@Fastdaveone 13 күн бұрын
I don't know why but my brain just cant understand the "not" operator and I've asked every ai in existence to try to explain it to me and I still don't under staged it ,can you maybe try to explain it pls thank you .
@DarkAcademyUniversity
@DarkAcademyUniversity 5 ай бұрын
@yousseef4012
@yousseef4012 Жыл бұрын
We need solidity course please
@BroCodez
@BroCodez Жыл бұрын
Sorry I'm not familiar with Solidity
@yousseef4012
@yousseef4012 Жыл бұрын
@@BroCodez you failed me bro 💔
@joaotgmendes
@joaotgmendes 9 ай бұрын
is it just me or with the not it isnt making sense
@vivekvuyyuru9214
@vivekvuyyuru9214 5 ай бұрын
Bro same if you understood please explain me i have exam tommorow
@krissbeyonna8918
@krissbeyonna8918 5 ай бұрын
simply just if not true then false if true then true if not false then true
@RGGBMGO
@RGGBMGO Жыл бұрын
Why are you making another python series
@BroCodez
@BroCodez Жыл бұрын
because I want to
@MrDotManPeriod
@MrDotManPeriod 11 ай бұрын
@@BroCodez 🗿
@Lit35
@Lit35 8 ай бұрын
Im the 1k liked lmao
@arshiaa104
@arshiaa104 Жыл бұрын
Comment
Learn Python CONDITIONAL EXPRESSIONS in 5 minutes! ❓
5:33
String methods in Python are easy 🧵
12:06
Bro Code
Рет қаралды 89 М.
Cat Corn?! 🙀 #cat #cute #catlover
00:54
Stocat
Рет қаралды 16 МЛН
LOVE LETTER - POPPY PLAYTIME CHAPTER 3 | GH'S ANIMATION
00:15
Despicable Me Fart Blaster
00:51
_vector_
Рет қаралды 23 МЛН
Logical Operators in Python
15:12
Neso Academy
Рет қаралды 24 М.
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 280 М.
Python logical operators 🔣
6:27
Bro Code
Рет қаралды 32 М.
Fastest Way to Learn ANY Programming Language: 80-20 rule
8:24
Sahil & Sarra
Рет қаралды 790 М.
25 nooby Python habits you need to ditch
9:12
mCoding
Рет қаралды 1,7 МЛН
Functions in Python are easy 📞
10:38
Bro Code
Рет қаралды 423 М.
Python 101: Learn the 5 Must-Know Concepts
20:00
Tech With Tim
Рет қаралды 1,1 МЛН
Python lists, sets, and tuples explained 🍍
15:06
Bro Code
Рет қаралды 247 М.
While loops in Python are easy ♾️
6:58
Bro Code
Рет қаралды 328 М.
Cat Corn?! 🙀 #cat #cute #catlover
00:54
Stocat
Рет қаралды 16 МЛН