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-ek1jr4 жыл бұрын
Thanks, i screen shot this for quick reference
@cecilarthur35794 жыл бұрын
U r a hero
@Tuvis_Official2 жыл бұрын
I came back to the video just to read this comment
@pnfitness78475 жыл бұрын
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.3 жыл бұрын
Same here 😁😁👍
@yashkulkarni64213 жыл бұрын
No bro. He was gone through that situation and learned from that n thats he is able to explain that things.😇
@williambuchanan96217 жыл бұрын
Your an amazing teacher. Straight up. Pizza and poison, so simple yet so perfect.
@KidsLearnHTML5 жыл бұрын
15:08 Thank you for clarifying the "what's necessary" stuff with real life. It's much appreciated.
@Zen-rw2fz7 жыл бұрын
i was so confused about this last month and without even doing anything this sounds too simple
@gore93417 жыл бұрын
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!!
@antonkorolev80595 жыл бұрын
AMAZING!! Im taking free MIT Python courses - and you explain it perfectly ! Thank you
@the_professional25588 жыл бұрын
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 :)
@043mehdi6 жыл бұрын
hello from Germany too :D
@JevvyMedia4 жыл бұрын
This video helped me a lot, especially with the real-life examples. Thank you so much.
@juwu34476 жыл бұрын
Like the way you are teaching! Savior of the day~
@MR_MAGUIRE.3 жыл бұрын
14:12 It's False OR True, you said False AND True.
@TheZangetsutensu7 жыл бұрын
3:55 slick move there fella..:)
@shenelldixon-transformyour42376 жыл бұрын
wow he is really good at teaching.
@abufaya41555 жыл бұрын
I'm enjoying it!!!!
@jaitelyg3 жыл бұрын
this was helpful and nice teacher True
@olgafridzon17056 жыл бұрын
Dude, you're amazing!!!
@basiert77017 жыл бұрын
Alot of people are giving up
@drbabbers3 жыл бұрын
Superb video thank you!
@derrickandchelseamcfall48486 жыл бұрын
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'.
@combatxhoop70697 жыл бұрын
Qazi = Pure Gold
@derrik-bosse7 жыл бұрын
I am still yet to see a majority of this stuff on your website!
@mohamedmukhtar16007 жыл бұрын
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)
@verylongchannelhandle7 жыл бұрын
Qazi,where is the link to the table?
@Henki27 жыл бұрын
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()
@offzone11996 жыл бұрын
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)
@saadmansakib90024 жыл бұрын
this and or actually means bulean multiplication and addition where true is 1 and false is 0
@shaikaftabahmed96666 жыл бұрын
thanks bro tomorrow i have cs exam .......hope it helps
@aabidmz57067 жыл бұрын
How did it gave output for poision example......
@preetamsaha17447 жыл бұрын
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
@combatxhoop70697 жыл бұрын
its case sensitive, Capitalize the first letter like True and False
@philsgaming48536 жыл бұрын
write it like this True or False
@combatxhoop70697 жыл бұрын
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
@kurdobakur70475 жыл бұрын
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?
@roxazzino31157 жыл бұрын
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?
@silverzero95247 жыл бұрын
bracket comes first. not(True or True or False and False) i.e not( True or False) not(True) = False
@roxazzino31157 жыл бұрын
ah ok thanks
@bhumiraksmith46567 жыл бұрын
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
@vomCzumHzumRIS7 жыл бұрын
throwback to Wittgenstein
@miguelsalvador283 жыл бұрын
Why is it I always forget the most basic parts of python smh, and thanks!
@pavithiranflash36777 жыл бұрын
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.. :)
@yushuot7 жыл бұрын
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_Defi6 жыл бұрын
Yes first you need to count AND then after that count OR
@adidediu82785 жыл бұрын
First of all the parentheses are solved then it is made the whole calculation
@husseinalwash77077 жыл бұрын
Thanx man
@javinp41058 жыл бұрын
You seem a bit out of it my friend! Sick?? Like the video :)
@jade81446 жыл бұрын
February 2019?
@hamzaelzarw1607 жыл бұрын
how can i make the speed of the turtle faster than zero
@s000sdas5 жыл бұрын
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
@r3m4k492 жыл бұрын
I love you bro
@sunzalea32572 жыл бұрын
yes i like posion and pizza
@v2nny4 жыл бұрын
Damn its that simple, my book makes it too complicated :[
@opssheesh7 жыл бұрын
guys! can anyone give me tips on how i can learn to type so fast even when i have to type symbols and numbers?
@043mehdi6 жыл бұрын
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
@97javaid7 жыл бұрын
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 ??
@beratcapcak57847 жыл бұрын
yeah now high school math is begining to make some sense
@ronitgummadi91675 жыл бұрын
why did you flex on your income
@efishaya75586 жыл бұрын
tnx!!!!!!
@rayylion61667 жыл бұрын
lol i was like Spongebob_hours_worked = 40
@pulokahmed57606 жыл бұрын
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.27056 жыл бұрын
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_Defi6 жыл бұрын
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,