Công Nghệ

# Learn Python Programming – 17 – Boolean Algebra Jiu-Jitsu for exercises and resources.
Let’s talk about the most important thing in programming… BOOOOOOOLEAN ALGEBRA. Hmm… Is that a True statement OR False? Watch the video AND find out… Or NOT…. Up to you. …

★☆★ FREE Lesson 1: The Most Important Thing For a Successful Programmer★☆★

Enroll for coding exercises, projects, tutorials, and courses…
————————————
Clever Programmer
Website ►
Facebook ►
Twitter ►
Instagram ►
Snapchat ► Rafeh1
iTunes Podcast ►
Google Podcast ►
Support (Patreon) ►
Youtube ►
Github (Code) ►

Nguồn:https://truonggiabinh.com/

Previous article

Next article

## 42 Comments

1. Ronit Gummadi says:

how many are there

2. Rajan Somanathan says:

Great teacher. Put more Python 3 videos. I am interested

3. harsha vardhan says:

Where is the link to buy T-shirt, I dont see any!?

4. MR. HACK says:

Are u indian

5. skipper -X says:

the spider man's quote : "With great power comes great Responsibility"

6. Technical Limelight says:

###################################################### # PROGRAM JK Flip Flops ###################################################### # NAND gate simulation def NAND(a,b): if a == True and b == True: return False else: return True # END NAND. ###################################################### # FALSE, FALSE Input def FF(): print("Assuming an input of FALSE(J) and FALSE(k)") print("") print(" K J ") print(" | | ") print(" | | ") print("+-——————————-+") print(" [ ] | | [ ]") print(" | | | |") print(" False False False False") print(" | | | |") print(" ———- ———-") print(" | | | |") print(" | | | |") print(" / /") print(" —— ——") print(" O O") print(" | |") print(" ",NAND(False,False), " ",NAND(False,False)) print(" | |") print(" | |") print(" | [ ] [ ] |") print(" | | | |") print(" | False False |") print(" | | | |") print(" ———- ———-") print(" | | | |") print(" | | | |") print(" / /") print(" —— ——") print(" O O") print(" | |") print(" ",NAND(True,False), " ",NAND(False,True)) print(" | |") print(" | |") print("+———————————+") print(" | |") print(" !Q Q") print("") Rtn = input("nPress Return to continuen") print("") print(" K J ") print(" | | ") print(" | | ") print("+———————————+") print(" [Q] | | [!Q]") print(" | | | |") print(" True False False True") print(" | | | |") print(" ———- ———-") print(" | | | |") print(" | | | |") print(" / /") print(" —— ——") print(" O O") print(" | |") print(" ",NAND(True,False), " ",NAND(False,True)) print(" | |") print(" | |") print(" | [Q] [!Q] |") print(" | | | |") print(" | True True |") print(" | | | |") print(" ———- ———-") print(" | | | |") print(" | | | |") print(" / /") print(" —— ——") print(" O O") print(" | |") print(" ",NAND(True,True), " ",NAND(True,True)) print(" | |") print(" | |") print("+———————————+") print(" | |") print(" !Q Q") print("") Rtn = input("nPress Return to continuen") print("") print(" K J ") print(" | | ") print(" | | ") print("+———————————+") print(" [Q] | | [!Q]") print(" | | | |") print(" False False False False") print(" | | | |") print(" ———- ———-") print(" | | | |") print(" | | | |") print(" / /") print(" —— ——") print(" O O") print(" | |") print(" ",NAND(False,False), " ",NAND(False,False)) print(" | |") print(" | |") print(" | [Q] [!Q] |") print(" | | | |") print(" | False False |") print(" | | | |") print(" ———- ———-") print(" | | | |") print(" | | | |") print(" / /") print(" —— ——") print(" O O") print(" | |") print(" ",NAND(True,False), " ",NAND(False,True)) print(" | |") print(" | |") print("+———————————+") print(" | |") print(" !Q Q") ###################################################### # FALSE, TRUE Input def FT(): print("Assuming an input of FALSE(J) and TRUE(k)") print("") print(" K J ") print(" | | ") print(" | | ") print("+———————————+") print(" [ ] | | [ ]") print(" | | | |") print(" False True False False") print(" | | | |") print(" ———- ———-") print(" | | | |") print(" | | | |") print(" / /") print(" —— ——") print(" O O") print(" | |") print(" ",NAND(False,True), " ",NAND(False,False)) print(" | |") print(" | |") print(" | [ ] [ ] |") print(" | | | |") print(" | False False |") print(" | | | |") print(" ———- ———-") print(" | | | |") print(" | | | |") print(" / /") print(" —— ——") print(" O O") print(" | |") print(" ",NAND(True, False), " ",NAND(False,True)) print(" | |") print(" | |") print("+———————————+") print(" | |") print(" !Q Q") print("") Rtn = input("nPress Return to continuen") print("") print(" K J ") print(" | | ") print(" | | ") print("+———————————+") print(" [Q] | | [!Q]") print(" | | | |") print(" True True False True") print(" | | | |") print(" ———- ———-") print(" | | | |") print(" | | | |") print(" / /") print(" —— ——") print(" O O") print(" | |") print(" ",NAND(True,True), " ",NAND(False,True)) print(" | |") print(" | |") print(" | [Q] [!Q] |") print(" | | | |") print(" | True True |") print(" | | | |") print(" ———- ———-") print(" | | | |") print(" | | | |") print(" / /") print(" —— ——") print(" O O") print(" | |") print(" ",NAND(False,True), " ",NAND(True,True)) print(" | |") print(" | |") print("+———————————+") print(" | |") print(" !Q Q") print("") Rtn = input("nPress Return to continuen") print("") print(" K J ") print(" | | ") print(" | | ") print("+———————————+") print(" [Q] | | [!Q]") print(" | | | |") print(" False True False True") print(" | | | |") print(" ———- ———-") print(" | | | |") print(" | | | |") print(" / /") print(" —— ——") print(" O O") print(" | |") print(" ",NAND(False,True), " ",NAND(False,True)) print(" | |") print(" | |") print(" | [Q] [!Q] |") print(" | | | |") print(" | False True |") print(" | | | |") print(" ———- ———-") print(" | | | |") print(" | | | |") print(" / /") print(" —— ——-") print(" O O") print(" | |") print(" ",NAND(True,False), " ",NAND(True,True)) print(" | |") print(" | |") print("+———————————+") print(" | |") print(" !Q Q") ###################################################### ################ # MAIN PROGRAM # ################ print("") print(" K J ") print(" | | ") print(" | | ") print("+———————————+") print("| |") print("| |") print("| J-K Flip Flop |") print("| |") print("| |") print("+———————————+") print(" | | ") print(" | | ") print(" !Q Q ") print("") print("") print("") print("Select Inputs to Flip Flop:") print("") print("1. FALSE(j), FALSE(k)") print("2. FALSE(j), TRUE (k)") print("3. TRUE (j), FALSE(k)") print("4. TRUE (j), TRUE (k)") print("") print("") choice = input("Enter choice(1/2/3/4):") if choice == '1': FF() elif choice == '2': FT() elif choice == '3': print("Function yet to be implemented") elif choice == '4': print("Function yet to be implemented") else: print("Invalid input") # ENDIF

7. G M says:

can you explain how to read based on Demorgans law?

8. Toghrul Latifzada says:

What is wrong with you? my suggestion before the lesson just sit and make reasoning, prepare yourself to class. It does not look like a profession explanation. You are thinking too much and look like don't have any confidence.

9. Mhs Hager Mahmoud says:

the T-shirt is epic i love the design soo much

10. Freddie Wooten says:

Cool T bro!

11. FRO says:

you damn right they gave up, <script>'not this guy'</script>

12. FRO says:

oh yeah and great job on the vidgies

13. FRO says:

nice shirt i want one send link

14. FIROZ WASEEM says:

please anyone send the link for thr execises to practice for python (clever programmer)

15. Shashwat Pandey says:

T-shirts really Dope

16. Jincheol Park says:

i want to know how to duplicate your last sentence fastlyis there any function?

17. Abdoulaye Balde says:

i realy like the way you teach aldo your short is great

18. Rutendo Musuka says:

I always forget to like(even though I like them) your videos so I am literally going to go that!!!!!!!!!!
your videos are sooo awesome and helpful

19. prashant indurkar says:

Coooooool t-shirt…sir

20. H&H Infosystems Pvt. Ltd. says:

>>> if TOTAL_MARKS>=300:
print("PASS")
else:
print('FAIL')

21. H&H Infosystems Pvt. Ltd. says:

marks=[90,80,100]
>>> marks={'HRIDYANSH':[90,80,100]}
>>> marks['HRIDYANSH']
[90, 80, 100]
>>> marks['HRIDYANSH']
80
>>> marks['HRIDYANSH']
90
>>> marks['HRIDYANSH']
100
>>> marks['HRIDYANSH']+marks['HRIDYANSH']+marks['HRIDYANSH']
270
>>> TOTAL_MARKS=marks['HRIDYANSH']+marks['HRIDYANSH']+marks['HRIDYANSH']
>>> TOTAL_MARKS=marks['HRIDYANSH']+marks['HRIDYANSH']+marks['HRIDYANSH']
>>> TOTAL_MARKS=marks['HRIDYANSH']+marks['HRIDYANSH']+marks['HRIDYANSH']
>>> if TOTAL_MARKS>=300:
print("PASS")

22. stellarestuary says:

I'm studying for my Wyzant Test so I decided to go through this playlist. Half way there!

23. Blaze Frostbyte says:

Hours = __

Wage = 10
if Hours <= 40:
print (Hours*Wage)
else:
print ((Hours*10) +(Hours-40)*5)

24. Messi 10 says:

HELLO, can You explain better this thing with If True ? Or if False? În can't understand them

25. too Direction says:

I will never say never to python

26. Shakhnoza Urinova says:

the shirt is awesome

27. Subhan Assiddik says:

i can't download subtitle indonesia in savefrom.net /please fix it.

28. Rayy lion says:

i have not given up!

29. Fahim Mosharrof Ratul says:

Qazi bro I think the shirt would look better if u used the 'Clever Programmer' lettering from the intro of your AskQazi videos, you know….so that it looks like the letters are formed out of programming language characters.. for color combination grey/orange, black/orange,black/red, black/yellow, midnight blue/white will look dope.

30. Danny_Programs ! says:

The shirt looks pretty good!

31. Shadab Omer says:

working_hours=int(input('Enter your working hours'))
payrate=50
overtime=(working_hours-40)
rate = overtime*60
salary = ((payrate*40)+(rate))

if working_hours>40:
print('Pay him – ',salary)
else:
print('He is not eligible for overtime!')

32. Stealth Man says:

who ever dislikes the videos of Quazi are followers of that old fellow Quazi introduced in his 1st video !!
and he bro why dont u conduct a Q & N

33. Frank The Bunny says:

How to input hours and get back how much johnny is getting paid for overtime

johnnys_payrate = float(12.30)
johnnys_ot_payrate = float(18.60)
johnnys_hours_worked = float(input("Input total hours worked: "))

if johnnys_hours_worked > 40:
print(johnnys_ot_payrate * (johnnys_hours_worked – int(40)))

34. Leon Perrt says:

great video man, got my sub!

35. hamza elzarw says:

you are the best

36. shubhankar maurya says:

That T-shirt is cool.

37. FluX says:

Where is the link,dude?

38. Nagendra Singh Chauhan says:

if False:
print("Success")
else:
print("Failure")

Result: Failure

if True:
print("Success")
else:
print("Failure")

Result: Success

Hows it Working? What if I want to print Success on False? or Failure on True

39. sainath reddy varikuti says:

Pls reply

40. sainath reddy varikuti says:

Can we else operator also
if John_worked_hours >42:
Print('high pay')
else
print('less pay')

41. Issam Anis says:

Where is the link for the t-shirt?

42. Clout Desert says:

:^)