I really struggled to understand the try and except before watching this. You explained it quickly and clearly and now I feel very confident with it. Thanks!
@ranahamzakhudadadkhan5632 Жыл бұрын
real practical examples help to understand the purpose of the function and you did it....🙂 thanks
@jonathanedwardgoode2 жыл бұрын
Thanks much for these videos! They are super helpful to me as a novice who is hoping to teach myself to code over the next year. One question, when should try&except be used instead of if statements?
@mordekai232 жыл бұрын
You should use try & except for errors that would stop the code from running. If statements you can use it like a try&except to filter input, it wont catch error codes
@decone4839 Жыл бұрын
@@mordekai23 yo great answer
@Senzei_YT3 жыл бұрын
Great work broo. I was confused about this, you helped me a lot. You described it very clearly. THANKS. SUBSCRIBED
@Tracks7777 жыл бұрын
When is your next video? :D Keep it up!
@keifer78132 жыл бұрын
Nice and clear. Great video
@addisumengistu47843 жыл бұрын
Who here noticed that he changed the position of Minecraft
@htetlwinkyaw291511 ай бұрын
Thanks Tim, this tutorial helped me a lot.
@How2Python.222 ай бұрын
Nice video
@freedomtd6 жыл бұрын
Hey man, great video. Thanks for posting it.
@mariadelgado43937 ай бұрын
Zoe Mushrooms
@mariadelgado43937 ай бұрын
Wrong post 😂 Sorry!
@KBQuick813 жыл бұрын
Perfect and concise!
@vihashah59755 жыл бұрын
Ur amazing! Thanks so much for these amazing tutorials.
@Random-nu3wx2 ай бұрын
great tutorial
@justinsgotto540714 күн бұрын
very good
@morty62244 жыл бұрын
You play Minecraft, Nice
@Halagamerz7232 ай бұрын
Morty wsp
@eswarspython27434 жыл бұрын
Nice video Watched at 2x Meet you in next one
@carlosz18584 жыл бұрын
thank you tim, you clear my doubts
@WanderfromSOTC11 ай бұрын
Best tuts on yt!
@timmyhuynh38592 жыл бұрын
Thank you very much for your video.
@luckie83775 жыл бұрын
great video
@PeenTip Жыл бұрын
So under that except block can you do a print function for a user input to try again?
@keneflucas93710 ай бұрын
If the 'try' function works, do you leave it in the program or do you replace it with an 'if' or something else...?
@Aaryan11762 жыл бұрын
Hii Tim after running a code I'm getting an error like this:- code: myList = [97,98,99,100] myList[1:1] = -40 print(myList) TypeError: can only assign an iterable
can someone tell me the difference between this and the 'if' and 'else' statement?
@FutureProgrammer3603 жыл бұрын
In some situations, if-else would handle the exception as well (by checking data type, for example), but in other situations, some errors and exceptions can't be caught by an if statement.
@sameer-vn3iq11 күн бұрын
its just "If and Else" why we have to use this??
@NotGhostCaos4 ай бұрын
Still crashes bc it uses an excel file, I want to avoid crash when run and the file is open :(