Logical operators in Python are easy 🔣

  Рет қаралды 88,417

Bro Code

Bro Code

Күн бұрын

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

Пікірлер: 66
@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 10 ай бұрын
Thanks
@GitaAska-is6yz
@GitaAska-is6yz 4 ай бұрын
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.
@paisz3299
@paisz3299 Жыл бұрын
Your vidoes helped me more than my uni
@Mclffshorts1408
@Mclffshorts1408 7 ай бұрын
Iam form India i am so understanding ur videos thanks for teaching courses form youtube
@iamgourav6256
@iamgourav6256 5 ай бұрын
me to also
@PSIwolf39
@PSIwolf39 8 ай бұрын
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!")
@rongwu8264
@rongwu8264 Ай бұрын
This made Python really easy to learn
@safimofi
@safimofi 10 ай бұрын
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!
@user-pc6bg8kh5v
@user-pc6bg8kh5v Жыл бұрын
Another helpful video from you!!!
@user-xt1mr3is8w
@user-xt1mr3is8w Ай бұрын
Thank you! this video was so helpful.
@joncaldwell4753
@joncaldwell4753 3 ай бұрын
Well done and thank you
@thiagogregory1
@thiagogregory1 3 ай бұрын
awesome video
@johnyprigioni859
@johnyprigioni859 11 ай бұрын
Great video, short and simple.
@DaniCantBeStopped
@DaniCantBeStopped 8 ай бұрын
Tysm bro im been trying to understand it for a while
@riderix5687
@riderix5687 3 ай бұрын
thanks g
@gamers4dx
@gamers4dx 8 ай бұрын
Bro code. Merry me. Thanks bro helpful video. appreciate it
@Gandalf17
@Gandalf17 Жыл бұрын
idk why i struggle with the NOT operator
@NPC_ghosttown
@NPC_ghosttown 9 ай бұрын
same bro .
@teebs2721
@teebs2721 Жыл бұрын
cool Bro Code
@user-ly5we6xl4v
@user-ly5we6xl4v 9 ай бұрын
NICELY DONE...❤
@al-cadaalachannel3194
@al-cadaalachannel3194 Жыл бұрын
Grateful 🙏
@Fastdaveone
@Fastdaveone 2 ай бұрын
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 .
@neongaming-je8rm
@neongaming-je8rm 3 күн бұрын
yes. i see. i get it.
@henryloyd6175
@henryloyd6175 Жыл бұрын
Thanks bro
@dineshgautam7027
@dineshgautam7027 Жыл бұрын
You are great....
@wmstram1
@wmstram1 Жыл бұрын
Watched it. Liked it.
@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 6 ай бұрын
Rust the game or am I just too stupid
@WitherKing007
@WitherKing007 6 ай бұрын
Oh it's a programming language
@joaotgmendes
@joaotgmendes 10 ай бұрын
is it just me or with the not it isnt making sense
@vivekvuyyuru9214
@vivekvuyyuru9214 7 ай бұрын
Bro same if you understood please explain me i have exam tommorow
@krissbeyonna8918
@krissbeyonna8918 7 ай бұрын
simply just if not true then false if true then true if not false then true
@spandanganguli6903
@spandanganguli6903 Ай бұрын
​@@vivekvuyyuru9214 I hope you did well.
@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
@TypicalVole2437
@TypicalVole2437 Жыл бұрын
thanks this was easy
@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!
@Lit35
@Lit35 10 ай бұрын
the fact that i figured out what "and " was two videos ago😍😍
@inkbythebarrelandpaperbyth6905
@inkbythebarrelandpaperbyth6905 Жыл бұрын
Legend man
@sofneo4454
@sofneo4454 Жыл бұрын
Love u
@madhukaabhishek4452
@madhukaabhishek4452 Жыл бұрын
Thans Bro
@Hallandfan847
@Hallandfan847 Жыл бұрын
IM THIRD OMG, COOL BRO CODE
@thebid7357
@thebid7357 10 ай бұрын
okay, your channel name is so damn good HAHAHAHAHA!!! Also you explained things very well!
@NPC_ghosttown
@NPC_ghosttown 9 ай бұрын
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 ?
@DarkAcademyUniversity
@DarkAcademyUniversity 7 ай бұрын
@roboro3
@roboro3 Жыл бұрын
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 11 ай бұрын
same are you using 3.11
@big_brein
@big_brein Жыл бұрын
I'm early?!
@yousseef4012
@yousseef4012 Жыл бұрын
We need solidity course please
@BroCodez
@BroCodez Жыл бұрын
Sorry I'm not familiar with Solidity
@yousseef4012
@yousseef4012 Жыл бұрын
@@BroCodez you failed me bro 💔
@Lit35
@Lit35 10 ай бұрын
Im the 1k liked lmao
@arshiaa104
@arshiaa104 Жыл бұрын
Comment
@RGGBMGO
@RGGBMGO Жыл бұрын
Why are you making another python series
@BroCodez
@BroCodez Жыл бұрын
because I want to
@MrDotManPeriod
@MrDotManPeriod Жыл бұрын
@@BroCodez 🗿
Learn Python CONDITIONAL EXPRESSIONS in 5 minutes! ❓
5:33
Bro Code
Рет қаралды 11 М.
While loops in Python are easy ♾️
6:58
Bro Code
Рет қаралды 352 М.
나랑 아빠가 아이스크림 먹을 때
00:15
진영민yeongmin
Рет қаралды 15 МЛН
The CUTEST flower girl on YouTube (2019-2024)
00:10
Hungry FAM
Рет қаралды 41 МЛН
Logical Operators in Python
15:12
Neso Academy
Рет қаралды 28 М.
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 303 М.
String methods in Python are easy 〰️
12:06
Bro Code
Рет қаралды 99 М.
Logical Operators in C
12:09
Neso Academy
Рет қаралды 418 М.
you need to learn Python RIGHT NOW!! // EP 1
17:42
NetworkChuck
Рет қаралды 2,4 МЛН
Python 101: Learn the 5 Must-Know Concepts
20:00
Tech With Tim
Рет қаралды 1,1 МЛН
Let's code a beginner's Python BANK PROGRAM 💰
15:01
Bro Code
Рет қаралды 159 М.
After 6 Years Of Studying Medicine: Here’s How You Learn Anything
14:06
나랑 아빠가 아이스크림 먹을 때
00:15
진영민yeongmin
Рет қаралды 15 МЛН