Python Beginner Tutorial 7 For Absolute Beginners - (If Elif & Else)

preview_player
Показать описание

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

I sincerely could binge watch this whole series if i had the time, you explain so well and its so fun

PorthoGamesBR
Автор

This is my second time when i post a comment on youtube -the reason is to thank you for you tutorials! Keep it up, it really helps!

andrew
Автор

Chris your video are great! simple to follow, easy to make programming look simple

aloicekiplimo
Автор

Hi Chris just wanted to thank you for your videos on python no one has anything remotely as good not even Udemy..
I used to code in vb6 and got into network administration and support. I wanted to return to programming and thought why not python. After watching just the first 7 of your videos, i was able to put together a program - i would post it to see what you think but didn't want to overstep. Im hoping i can get my life back, my ex pretty much wiped me out and sys admin isnt enough money, so maybe this could be my way back. Or maybe im too old, anyways thanks man...

sigmiami
Автор

Is there any way to manage the indentation for the big amount of code?

neelimayadavNY
Автор

So elif is basically the same as else? But for if you want an extra condition. If 'if' and 'else' don't do everything you want 'elif' is your backup reserve extra: 'else' elif is else #2. Is that what I'm to take away from this? It seems to function identically to 'else'

metalsucks
Автор

I'm having this issue that I don't know how can I stop the program from exiting! just to show the results.. Thanks Chris!

FadiSamir
Автор

can you assign variables as like the enter key? like when I'm doing inputs.

anorderedhole
Автор

Do you have any videos explaining how to make spite nodes move? I'm trying to make an artificial game pad where the arrow buttons animate a sprite node in the x or y axis by making say the left node move the character along the x axis by a negative number and the right node moving the same sprite node along the x axis by a positive number. I figure once I understand how to do this making the up and down buttons do the same thing along the y axis should be easy to re-write.

metalsucks
Автор

I doing exercise and i am stuck on this. I want to check if a number is odd or even and multiple of 2 and 4! I could build a code to do that. But i wanted to add an extra. In the beggining i want to check if the input it´s really a number or not, i have following code witch i saw someone posting on stackflow....
number = input("Just pick a number?\n")
number = 0
while True:
try:
number = int(input("Pick a number: \n"))
except ValueError:
print("It's not a number!\n")
continue
else:
print("It's a number")
break:
if number % 4 == 0: #if is multiple of 4
print("The number " + str(number) + " is multiple of 4 and a even number")
elif number % 2 == 0: # if is multiple of 2 and if is even number
print("The number " + str(number) + "is a even number")
else: #is odd number
print("The number " + str(number) + "is a odd number")


Try diferent ways to check a number, this code gives me sysntax error on line 6 (except Value Error:)

DiogoPT
Автор

I understand the if and else statements, but i really don't get the elif statement. couldn't you just add another if statement instead?

sparkrefined
Автор

Can you check if a variable is equal to a variable?

thecurrencychannel
Автор

I keep getting "pylint not installed" yet each time I say install it, it says it is???? What have I done wrong???

sonarmb
Автор

Why didn't you just put "my_name = input("Name: ")" Instead of you needing to change it in the code everytime!

aresiel