Python Programming Tutorial - 28 - You are the only Exception

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

i cant believe we are 28 tutorials in and its the first time we had the user input something

davidboskovic
Автор

"The user was an idiot." - Bucky Roberts

EvanSabin
Автор

Yep your cool. Bucky! You are literally my favorite programming teacher ever.

seanbrown
Автор

Dude, you helped me with Android, now you are helping me with python :) god or whatever you believe in, bless you!

fixxxer
Автор

Serious question: I'm pretty curious on whether the fucking NullPointerException that always waste my a lot of time exist in Python as well?

MIO_sh
Автор

Past 3 tutorials: build a web crawler to rival simple Google mostly building off script that another code wrote as a module

this tutorial: oh wait I forgot to teach them what try does lol

Still love ya bucky

revuutube
Автор

I had to use "NameError" instead of "ValueError", I'm guessing because I'm using Python 2.7.13.

Thanks for great tutorial, Bucky.

arock
Автор

I dont know why but I like the channel display picture so much..!!!

AltafNeva
Автор

I like to ask the user for their first input before I enter the while loop. Then for example I try to get the integer, and if I have a ValueError, I can already ask for an input in the exception, then repeat the loop and try to convert to a an int, etc.

Zwerggoldhamster
Автор

The title tells me Bucky likes Paramoe.

TheJaniable
Автор

you are the one that made me wanted to program more in python because you make it sound so interesting so i linked you in my channel (OmeglaWaffles101) and i subscribed

xXPumpkinPvPTutsXx
Автор

If ''break" leads us to go outside loop, how come "finally complete " can run?

StillWaterNZ
Автор

For those using these videos. There is one way to catch all errors and still know whats going on:
"except Exception as e: print(e)"

Original page:

inspades
Автор

while True:
try:
number = int(input("what's your fav number?"))
print("Wow, ", number, " Is my favorite number too!")
break
except ValueError:
print("Please enter a valid number.")

bogite
Автор

can you please upload a video on the topic - using debugger in pycharm....
i kind of don't know how to use a debugger

bipul
Автор

I have a question, running the source from this video.. I was surprised when the return value came back as a "FLOAT", when you specifically "casted" the input value as a "INT".. 3 entered / 6.0 returned..
are INT's & FLOATS interchangeable in Python 3.6? (having a PHP background, they are not the same).. but i just seen it with my own eyes.. lol

TerryDeSimone
Автор

but if you remove the (int) it would fix it, you could type words and numbers

pillowdokusayer
Автор

Thanks for helping! I wonderd why my code did not work: had to change to an integer.
Anyway awsome  tutorial as always!

MrSKYFOUR
Автор

Could someone explain the purpose of the "while True:" before the try statement.  It seems like we would never exit the loop because we never explicitly return false. I'm coming from java so its also weird that there is no object attached with "True".

MainManPhillis
Автор

i am new to python coding,
can you tell me how to raise custom exception in python?

venkateshchary