#python #code #tutorial Python logical operators and or not tutorial example explained
Пікірлер: 66
@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")
@swaroopgande348110 ай бұрын
Thanks
@GitaAska-is6yz4 ай бұрын
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.
@paisz3299 Жыл бұрын
Your vidoes helped me more than my uni
@Mclffshorts14087 ай бұрын
Iam form India i am so understanding ur videos thanks for teaching courses form youtube
@iamgourav62565 ай бұрын
me to also
@PSIwolf398 ай бұрын
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Ай бұрын
This made Python really easy to learn
@safimofi10 ай бұрын
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 Жыл бұрын
Another helpful video from you!!!
@user-xt1mr3is8wАй бұрын
Thank you! this video was so helpful.
@joncaldwell47533 ай бұрын
Well done and thank you
@thiagogregory13 ай бұрын
awesome video
@johnyprigioni85911 ай бұрын
Great video, short and simple.
@DaniCantBeStopped8 ай бұрын
Tysm bro im been trying to understand it for a while
@riderix56873 ай бұрын
thanks g
@gamers4dx8 ай бұрын
Bro code. Merry me. Thanks bro helpful video. appreciate it
@Gandalf17 Жыл бұрын
idk why i struggle with the NOT operator
@NPC_ghosttown9 ай бұрын
same bro .
@teebs2721 Жыл бұрын
cool Bro Code
@user-ly5we6xl4v9 ай бұрын
NICELY DONE...❤
@al-cadaalachannel3194 Жыл бұрын
Grateful 🙏
@Fastdaveone2 ай бұрын
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-je8rm3 күн бұрын
yes. i see. i get it.
@henryloyd6175 Жыл бұрын
Thanks bro
@dineshgautam7027 Жыл бұрын
You are great....
@wmstram1 Жыл бұрын
Watched it. Liked it.
@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
@WitherKing0076 ай бұрын
Rust the game or am I just too stupid
@WitherKing0076 ай бұрын
Oh it's a programming language
@joaotgmendes10 ай бұрын
is it just me or with the not it isnt making sense
@vivekvuyyuru92147 ай бұрын
Bro same if you understood please explain me i have exam tommorow
@krissbeyonna89187 ай бұрын
simply just if not true then false if true then true if not false then true
@spandanganguli6903Ай бұрын
@@vivekvuyyuru9214 I hope you did well.
@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
@TypicalVole2437 Жыл бұрын
thanks this was easy
@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!
@Lit3510 ай бұрын
the fact that i figured out what "and " was two videos ago😍😍
@inkbythebarrelandpaperbyth6905 Жыл бұрын
Legend man
@sofneo4454 Жыл бұрын
Love u
@madhukaabhishek4452 Жыл бұрын
Thans Bro
@Hallandfan847 Жыл бұрын
IM THIRD OMG, COOL BRO CODE
@thebid735710 ай бұрын
okay, your channel name is so damn good HAHAHAHAHA!!! Also you explained things very well!
@NPC_ghosttown9 ай бұрын
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 ?
@DarkAcademyUniversity7 ай бұрын
@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