#python #code #tutorial Python logical operators and or not tutorial example explained
Пікірлер: 63
@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")
@swaroopgande34818 ай бұрын
Thanks
@GitaAska-is6yz2 ай бұрын
Bro tutor python 2024
@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-pc6bg8kh5v10 ай бұрын
Another helpful video from you!!!
@johnyprigioni85910 ай бұрын
Great video, short and simple.
@fiathemuslimah9 ай бұрын
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 Жыл бұрын
Your vidoes helped me more than my uni
@rongwu82646 күн бұрын
This made Python really easy to learn
@joncaldwell4753Ай бұрын
Well done and thank you
@user-ly5we6xl4v8 ай бұрын
NICELY DONE...❤
@Mclffshorts14085 ай бұрын
Iam form India i am so understanding ur videos thanks for teaching courses form youtube
@iamgourav62563 ай бұрын
me to also
@dineshgautam7027 Жыл бұрын
You are great....
@PSIwolf396 ай бұрын
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 Жыл бұрын
Grateful 🙏
@wmstram1 Жыл бұрын
Watched it. Liked it.
@thiagogregory1Ай бұрын
awesome video
@teebs2721 Жыл бұрын
cool Bro Code
@henryloyd6175 Жыл бұрын
Thanks bro
@DaniCantBeStopped7 ай бұрын
Tysm bro im been trying to understand it for a while
@riderix5687Ай бұрын
thanks g
@TypicalVole2437 Жыл бұрын
thanks this was easy
@gamers4dx7 ай бұрын
Bro code. Merry me. Thanks bro helpful video. appreciate it
@inkbythebarrelandpaperbyth690510 ай бұрын
Legend man
@NPC_ghosttown7 ай бұрын
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 Жыл бұрын
Thans Bro
@sofneo4454 Жыл бұрын
Love u
@Hallandfan847 Жыл бұрын
IM THIRD OMG, COOL BRO CODE
@Gandalf17 Жыл бұрын
idk why i struggle with the NOT operator
@NPC_ghosttown7 ай бұрын
same bro .
@Lit358 ай бұрын
the fact that i figured out what "and " was two videos ago😍😍
@earlchesterantonio1581 Жыл бұрын
Can you do some tutorials about rust too? Btw I love you videos man.
@BroCodez Жыл бұрын
thanks. I'm not sure if people would watch a Rust series tho
@earlchesterantonio1581 Жыл бұрын
Aww, that's sad
@WitherKing0074 ай бұрын
Rust the game or am I just too stupid
@WitherKing0074 ай бұрын
Oh it's a programming language
@roboro310 ай бұрын
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
@reziiuk9 ай бұрын
same are you using 3.11
@merouanebelrhiti893 Жыл бұрын
You are the best We need a ethical hacking course !!
@BroCodez Жыл бұрын
Sorry I'm not an ethical hacker
@merouanebelrhiti893 Жыл бұрын
@@BroCodez ok bro keep up the good work 👏 we are learning from you a lot 🙌 ,im from Morocco by the way 👍 ❤️
@merouanebelrhiti893 Жыл бұрын
@@BroCodezEnglish is my 4th language and i understand everything you explained thanks 😊
@eliseanghel3556 Жыл бұрын
I agree, we need it asap
@thebid73579 ай бұрын
okay, your channel name is so damn good HAHAHAHAHA!!! Also you explained things very well!
@eureka1251 Жыл бұрын
Hello, can you do video about spring in java?
@BroCodez Жыл бұрын
I'm not sure if people would watch it
@eureka1251 Жыл бұрын
@@BroCodez This is very useful, java developer should know about spring, you want to explain well and clearly!
@big_brein Жыл бұрын
I'm early?!
@Fastdaveone13 күн бұрын
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 .
@DarkAcademyUniversity5 ай бұрын
@yousseef4012 Жыл бұрын
We need solidity course please
@BroCodez Жыл бұрын
Sorry I'm not familiar with Solidity
@yousseef4012 Жыл бұрын
@@BroCodez you failed me bro 💔
@joaotgmendes9 ай бұрын
is it just me or with the not it isnt making sense
@vivekvuyyuru92145 ай бұрын
Bro same if you understood please explain me i have exam tommorow
@krissbeyonna89185 ай бұрын
simply just if not true then false if true then true if not false then true