Python Beginner Tutorial 5 - Booleans and Conditionals (Reposted w/ Zoom)

preview_player
Показать описание
Repost Issue: I do two cuts of each video. A "raw" cut that contains fixes and improvements. Then I do a final cut that adds zoom, annotations and other features. I had originally posted the version without zoom (my bad). This is simply the final cut of the video and is otherwise identical in content to the original. If you watched the first version of Tutorial 5 there is no need to watch this again. If you have no idea what I'm talking about... No harm no foul: Enjoy Tutorial 5 as I indented with zoom and annotations!

This tutorial covers declaring Boolean expressions and evaluating conditional expressions in python (if statement). After watching this video users should be able to create and evaluate Boolean expressions and use Boolean expressions in conditional operations (if statements).

Рекомендации по теме
Комментарии
Автор

Who would thumb down these videos...? These are the best starter tutorials I've found yet (and I've watched almost all of them).

jameswillert
Автор

Yes, keep making these videos. You are the first person I could say that I can understand his teaching. I mean, I've tried with others, but since they already know how to code, they go way too fast and no explanation at all. Now I have to remember all the Booleans and learn how to use it in codes. Thanks. Great job.

WilliamAlequin
Автор

Thanks for the fine tutorials Kevin. I'm a retired software developer who has some interest in Alexa skills (just a hobby I think) and I've been looking for a currently popular language and your video make Python look easy enough for an "old dog". :)

jwmurrayjr
Автор

Just a painter, but it doesn't hurt to learn python. Thank you for your work, sir.

bobross
Автор

I decided to learn Python as one of my new years' resolution. I've been looking for courses which could really teach me something. Well, Kevin, I found your videos by mistake, and guess what? this is tutorial 5, and I'm still hanging along. I've been learning a lot, thanks to your patience.

jaybaellis
Автор

It's a bit unpleasant to see ur videos aren't getting more views! Hope it will in future! Looking forward for the next one!

hasans
Автор

ty man ! this is so good, from zero to this .. tysm

my modified code#
def add(num1, num2):
return num1 + num2
def minus(num1, num2):
return num1 - num2
def multiply(num1, num2):
return num1 * num2
def divide(num1, num2):
return num1 / num2

"""calculator ends here"""

def main():
firstname = raw_input("what is your first name ?")
secondname = raw_input("what is your last name ?")
print ("Hi")
print add(firstname, secondname)
print ("Welcome to the calculator")
def secondmain():
firstnum = int(raw_input("What is your first number ? "))
secondnum = int(raw_input("What is your second number ? "))
operation = raw_input("What are you going to do ?(add, minus, multiply, divide)")
if (operation == 'add'):
print (add(firstnum, secondnum))
elif (operation == 'minus'):
print (minus(firstnum, secondnum))
elif (operation == 'multiply'):
print (multiply(firstnum, secondnum))
elif (operation == 'divide'):
print (divide(firstnum, secondnum))
else :
print("Sorry i cant understand ! ")

def lastmain():
print ("Thank you for using the calculator = D ")
result1 = raw_input("Would you like to use the calculator again ? (yes, no)")
if (result1 == 'yes'):
secondmain()
lastmain()
elif (result1 == 'no'):
print("Thank you for using the calculator = D ")
else:
print("Thank you for using the calculator = D ")


system running

main()
secondmain()
lastmain()

aminmw
Автор

hey i m 13 yrs old and these videos have helped me a lot first python programmer in my school

sridharmsri
Автор

I have gone through may videos but your videos are the best i have seen so far great way of explaining

TheAusafonly
Автор

Thank you for making video. Your presentation is thorough. My CMD did not work but you took time to show others ways to get there.

vicg
Автор

Dude it's so crazy how much your voice has changed since the posting of ep. 4. It doesn't even sounds like the same person behind the computer xD

dschulz
Автор

Kevin, these videos are presented very well. Thank you -

dmlyo
Автор

Nice vid! Much better with all the zoom and annotations!

zibzo
Автор

you know i waited 3 years for this video

Hoexzy
Автор

You can also compare non-full numbers like 0.2, 10.5 and so, on and so on.

michaelgum
Автор

very helpful videos, and very well explained! Keep up the good work man.

dhruvmalik
Автор

These videos are helpful! Thank you, Kevin!

jwong
Автор

Thanks a lot Kevin these videos are very very very helpful for beginners like me

gotruanupama
Автор

Thank you for making these videos Sir!!! I'm 24, and have Zero background in programming. I just decided to learn 5 days ago, and your videos have been an great help. As a request though could you please stop naming everything thing the same thing. I.E. Having your: function, argument, variable, and print statement "Hello World". It just get's kinda confusing to keep track of which which is which.

jakesmith
Автор

i am 12 and i can follow these vids (i love them)

twofastjack