Learn Python Programming - 18 - Logical AND OR NOT

  Рет қаралды 51,058

Clever Programmer

Clever Programmer

Күн бұрын

Пікірлер
@InFamousCzr
@InFamousCzr 7 жыл бұрын
That image is confusing maybe it's best explained like this. "AND" = both have to be true to be true. True and true = true True and false = false False and true = false False and false = false "OR" = just one has to be true to return true. True or true = true True or false = true False or True = true False or false = false "NOT" = opposite of each other Not true = false Not false = true In case someone watching this still doesn't get it.
@AR-ek1jr
@AR-ek1jr 4 жыл бұрын
Thanks, i screen shot this for quick reference
@cecilarthur3579
@cecilarthur3579 4 жыл бұрын
U r a hero
@Tuvis_Official
@Tuvis_Official 2 жыл бұрын
I came back to the video just to read this comment
@pnfitness7847
@pnfitness7847 5 жыл бұрын
You have a natural gift and ability to explain programming in ways that are so understandable! You made something I was confused on so simple. Thank you!
@MR_MAGUIRE.
@MR_MAGUIRE. 3 жыл бұрын
Same here 😁😁👍
@yashkulkarni6421
@yashkulkarni6421 3 жыл бұрын
No bro. He was gone through that situation and learned from that n thats he is able to explain that things.😇
@williambuchanan9621
@williambuchanan9621 7 жыл бұрын
Your an amazing teacher. Straight up. Pizza and poison, so simple yet so perfect.
@KidsLearnHTML
@KidsLearnHTML 5 жыл бұрын
15:08 Thank you for clarifying the "what's necessary" stuff with real life. It's much appreciated.
@Zen-rw2fz
@Zen-rw2fz 7 жыл бұрын
i was so confused about this last month and without even doing anything this sounds too simple
@gore9341
@gore9341 7 жыл бұрын
thank you SO much man! I was struggling so hard with the whole "not not false and true and false" junk. Your video summed it up perfectly for me. Mad respect my man!!
@antonkorolev8059
@antonkorolev8059 5 жыл бұрын
AMAZING!! Im taking free MIT Python courses - and you explain it perfectly ! Thank you
@the_professional2558
@the_professional2558 8 жыл бұрын
Hi CP, thank you for putting in the work! I use "youtube lectures" like yours to expand my knowledge in certain areas next to my usual studies. Very well done and easy to follow. Keep it up! Greetings from Germany :)
@043mehdi
@043mehdi 6 жыл бұрын
hello from Germany too :D
@JevvyMedia
@JevvyMedia 4 жыл бұрын
This video helped me a lot, especially with the real-life examples. Thank you so much.
@juwu3447
@juwu3447 6 жыл бұрын
Like the way you are teaching! Savior of the day~
@MR_MAGUIRE.
@MR_MAGUIRE. 3 жыл бұрын
14:12 It's False OR True, you said False AND True.
@TheZangetsutensu
@TheZangetsutensu 7 жыл бұрын
3:55 slick move there fella..:)
@shenelldixon-transformyour4237
@shenelldixon-transformyour4237 6 жыл бұрын
wow he is really good at teaching.
@abufaya4155
@abufaya4155 5 жыл бұрын
I'm enjoying it!!!!
@jaitelyg
@jaitelyg 3 жыл бұрын
this was helpful and nice teacher True
@olgafridzon1705
@olgafridzon1705 6 жыл бұрын
Dude, you're amazing!!!
@basiert7701
@basiert7701 7 жыл бұрын
Alot of people are giving up
@drbabbers
@drbabbers 3 жыл бұрын
Superb video thank you!
@derrickandchelseamcfall4848
@derrickandchelseamcfall4848 6 жыл бұрын
actually 'True or poision' worked because as soon as python evaluated True, the or statement evaluates to True. If you would have done poision or True you would have gotten a traceback error. It's called short-circuiting. If the first part of the or statement is True it doesn't even evaluate the second part because the statement is True by definition of 'or'.
@combatxhoop7069
@combatxhoop7069 7 жыл бұрын
Qazi = Pure Gold
@derrik-bosse
@derrik-bosse 7 жыл бұрын
I am still yet to see a majority of this stuff on your website!
@mohamedmukhtar1600
@mohamedmukhtar1600 7 жыл бұрын
import turtle my_turtle = turtle.Turtle() my_turtle.speed (0) # Lesson learnt is that, I have called the Turtle fuction in the defined fuction and eachtime the system run it as part of the defined fuction. def sqy(length, angle): my_turtle.forward(length) my_turtle.left(angle) my_turtle.forward(length) my_turtle.left(angle) my_turtle.forward(length) my_turtle.left(angle) my_turtle.forward(length) my_turtle.forward(length) for i in range(101): sqy(50,90) my_turtle.right(11) #my_turtle = turtle.Turtle() #my_turtle.forward(100)
@verylongchannelhandle
@verylongchannelhandle 7 жыл бұрын
Qazi,where is the link to the table?
@Henki2
@Henki2 7 жыл бұрын
def password_1(): print('please enter username and password') tries = 0 while True: username = input() password = input() if username == 'henki' and password == 'pass': print('access granted') elif tries >= 2: print('access denied') break if tries < 2: tries = tries + 1 password_1()
@offzone1199
@offzone1199 6 жыл бұрын
Hey man! I wanted to say throughout these series this has worked out for me but some of the things like slicing strings and == = != didn't work is it because you need terminal for those type of stuff . And also idk how to search for files like that, i found idle when i located the file of python. CAn you please help on how to get pip,terminal and stuff like that and also why soe of the things doesn't work? Thank You ( I watched like 8+ episodes of these series in my first day)
@saadmansakib9002
@saadmansakib9002 4 жыл бұрын
this and or actually means bulean multiplication and addition where true is 1 and false is 0
@shaikaftabahmed9666
@shaikaftabahmed9666 6 жыл бұрын
thanks bro tomorrow i have cs exam .......hope it helps
@aabidmz5706
@aabidmz5706 7 жыл бұрын
How did it gave output for poision example......
@preetamsaha1744
@preetamsaha1744 7 жыл бұрын
its showing the name true and false are not defined.i cant do this this operations please help me .i m using in windows this true and false are appearing in black color but in u r video its in orange
@combatxhoop7069
@combatxhoop7069 7 жыл бұрын
its case sensitive, Capitalize the first letter like True and False
@philsgaming4853
@philsgaming4853 6 жыл бұрын
write it like this True or False
@combatxhoop7069
@combatxhoop7069 7 жыл бұрын
Your site just kinda put us in the video of How i Leaned to Code in less then 2 months and it doesnt really enroll us how to enroll
@kurdobakur7047
@kurdobakur7047 5 жыл бұрын
use_input = [('What', 'WP'), ('is', 'VBZ'), ('your', 'PRP$'), ('name', 'NN'), ('?', '.')] x = ('What', 'WP') y = ('name', 'NN') z = ('age', 'NN') z and y in use_input >>> True How could that be? and what can I do to make sure it returns false when one of the variables is not in the use_input?
@roxazzino3115
@roxazzino3115 7 жыл бұрын
why does not(True or True or False and (True and False)) give back False? i was thinking like that : True or True or False = True | not(True and (True and False)) True and False = False | not(True and(False)) True and False = False | not(False) = True why isn't it correct?
@silverzero9524
@silverzero9524 7 жыл бұрын
bracket comes first. not(True or True or False and False) i.e not( True or False) not(True) = False
@roxazzino3115
@roxazzino3115 7 жыл бұрын
ah ok thanks
@bhumiraksmith4656
@bhumiraksmith4656 7 жыл бұрын
not(True or False or True and ( True and False)) # Break it down # you know what i mean if you learn math True or False or True and False # Break it down again True or False # This is the process in which the comp calculate = not(True) = False # :D
@vomCzumHzumRIS
@vomCzumHzumRIS 7 жыл бұрын
throwback to Wittgenstein
@miguelsalvador28
@miguelsalvador28 3 жыл бұрын
Why is it I always forget the most basic parts of python smh, and thanks!
@pavithiranflash3677
@pavithiranflash3677 7 жыл бұрын
Guys, i had this ques. when i was watching python Tutorial! not(True or True or False and False) Does AND executes first before OR...?? if that happens it leads to : not( True or False) not(True) False Whats actually happening their..??? Thx for feedBack.. :)
@yushuot
@yushuot 7 жыл бұрын
I couldn't get it as well. Because if like in math times and divide is at the same priority then you will do it from the front to the back but here is like if you don't do the "and" first you will get the exact opposite. So I also guessed that "and" has the priority over "or"
@Shams_Defi
@Shams_Defi 6 жыл бұрын
Yes first you need to count AND then after that count OR
@adidediu8278
@adidediu8278 5 жыл бұрын
First of all the parentheses are solved then it is made the whole calculation
@husseinalwash7707
@husseinalwash7707 7 жыл бұрын
Thanx man
@javinp4105
@javinp4105 8 жыл бұрын
You seem a bit out of it my friend! Sick?? Like the video :)
@jade8144
@jade8144 6 жыл бұрын
February 2019?
@hamzaelzarw160
@hamzaelzarw160 7 жыл бұрын
how can i make the speed of the turtle faster than zero
@s000sdas
@s000sdas 5 жыл бұрын
import random bools = [True, False] johnny = { 'math_homework' : random.choice(bools), 'pizza' : random.choice(bools)} if johnny['math_homework'] != True and johnny['pizza'] == True: print("johhny likes pizza but dislikes math")elif johnny['math_homework'] == True and johnny['pizza'] == True: print("johnny likes both pizza and math")else: print("johhny likes math but dislikes pizza")
@מרסלוגויקוצאה
@מרסלוגויקוצאה 7 жыл бұрын
4:18 APPLE PEN
@r3m4k49
@r3m4k49 2 жыл бұрын
I love you bro
@sunzalea3257
@sunzalea3257 2 жыл бұрын
yes i like posion and pizza
@v2nny
@v2nny 4 жыл бұрын
Damn its that simple, my book makes it too complicated :[
@opssheesh
@opssheesh 7 жыл бұрын
guys! can anyone give me tips on how i can learn to type so fast even when i have to type symbols and numbers?
@043mehdi
@043mehdi 6 жыл бұрын
typing.io is your friend. and lots of practice, never ever look down on your keyboard, you will be superfast in no time. Good luck
@97javaid
@97javaid 7 жыл бұрын
it can be more simple, if we consider False = 0 & True = 1 AND = * OR = + A B A AND B A OR B Not A 0 0 0 0 1 0 1 0 1 1 1 0 0 1 0 1 1 1 1 1 it's make more sense ??
@beratcapcak5784
@beratcapcak5784 7 жыл бұрын
yeah now high school math is begining to make some sense
@ronitgummadi9167
@ronitgummadi9167 5 жыл бұрын
why did you flex on your income
@efishaya7558
@efishaya7558 6 жыл бұрын
tnx!!!!!!
@rayylion6166
@rayylion6166 7 жыл бұрын
lol i was like Spongebob_hours_worked = 40
@pulokahmed5760
@pulokahmed5760 6 жыл бұрын
i don't understand why the result is False here: >>> not(True or False or True and (True and False)) False it should be True because: >>> not(True or False or True) False >>> not(True and False) True >>> not(True and False) True ????????
@hhinfosystemspvt.ltd.2705
@hhinfosystemspvt.ltd.2705 6 жыл бұрын
IT SOLVES IT IN THIS WAY: 1.not(True or False or True and(True and False)) 2.not(True or False or True and (False)),,,it first solves the bracket 3.not(True or False or True and False) 4.not(True or False or False),,,,,,,it solves and before or 5.not(True or False) 6.not(True) 7.False
@Shams_Defi
@Shams_Defi 6 жыл бұрын
In programming there is something called operator preference, just like in mathematics first you need to count multiplication and then addition and subtraction, in programming language you count AND before OR,
@sharjilsharma424
@sharjilsharma424 3 жыл бұрын
u r so confused bro
Learn Python Programming - 19 -  Conditionals and Control Flow
15:59
Clever Programmer
Рет қаралды 39 М.
Learn Python Programming - 20 - For Loops
20:40
Clever Programmer
Рет қаралды 131 М.
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
#8: Boolean and Comparison Operators in C Programming
14:42
Programiz
Рет қаралды 141 М.
Logical operators in Python are easy 🔣
5:04
Bro Code
Рет қаралды 110 М.
Every Programming Language Ever Explained in 15 Minutes
15:29
Flash Bytes
Рет қаралды 366 М.
COMPUTER SCIENCE explained in 17 Minutes
16:49
Wacky Science
Рет қаралды 1,7 МЛН
Bitwise Operators and WHY we use them
8:41
Alex Hyett
Рет қаралды 97 М.
Learn Python Programming - 11 - String Slicing NOT Cake Slicing
17:39
Clever Programmer
Рет қаралды 94 М.
Learn JavaScript - Full Course for Beginners
3:26:43
freeCodeCamp.org
Рет қаралды 19 МЛН
Logical Operators in Python
15:12
Neso Academy
Рет қаралды 37 М.
Learn Python Programming - 16 - Dictionaries
16:23
Clever Programmer
Рет қаралды 73 М.