I am a two star Competitive Programmer and thanks to python and C taught by harry. I recommend this course to everyone. Just think about it you spend only around 10 minutes everyday for python you can learn it in 100 days.
Nah.. mere jaise aur beginners ke liye overwhelming hota hai Jab log itne badhiya answers dal dete hai Fir motivation chale jayega 70% logo ka Ye nhi chahte honge vo
In this video lecture, we learnt about another clause of exception handling used for error handling, which is finally keyword. The block of code written inside finally clause is executed always irrespective of the retun of the values from try or except blocks in a function. This fianlly clause may be used for various purposes like closing some resourse files, closing the database connections or ending the program with some appreciative messages.
Harry bhai maja aa gaya ho! kal Python programming ki exam he aur aaj mene chalu kiya 20th videos aur 61th tak kiya. Maja aa gaya. 1. Desi Explanation (as well theoretical explanation ) 2. Structured 3. Notes Bhai udemy me jo premium course milte he na isse ye far better he. Kal exam me jo pure marks ayge vo bhai apki baje se aur mainly jo python ka funda clear hua na bhai maja a gaya Bhai aap AI, ML jese bhi course chalu kar dijiye Thanks Man!
00:01 Finally keyword in Python for cleanup and error handling 01:13 Python finally keyword ensures that a section of code is always executed, whether there is an exception or not. 02:27 The 'finally' keyword in Python always executes, even if there is an error 03:17 Understanding the concept of the 'finally' keyword 04:21 Returning zero in Python indicates an error has occurred. 05:15 The 'finally' keyword ensures that certain code gets executed regardless of whether there is an error or not. 06:06 The 'finally' keyword is used to handle tasks such as database connection closure or file cleanup. 07:02 Review the Python course and leave your comments
try: a=int(input("enter number one")) b=int(input("enter number two")) c=(input("enter +,-,*,/ for purticular action")) match c: case '+': print("addition is",a+b) case '-': print("subtration is",a-b) case '*': print("multiplication is",a*b) case '/': print("division is",a/b) case _ : print('invalid input')
except: print('error 400') finally: print("thanku for using my calculator")
Respective Sir ! According to variable naming rule in C, we can't use variable's first character any special symbol other then ( _ ) underscore, if i take variable as ( $age ) that is valid in gcc, so please tell me about that problem, how this possible? Please sir !
Finally I got the answer, now in Programming there are two special symbol one is underscore ( _ ) and 2nd is dollar ( $ ) can be use in variable naming as a first character.
Harry bhaiya aapki vajah se mujhe mere 1st mid term me c language me out of 30 , 28 marks mile hai vo 2 marks bhi kuch galti ho gyi thi semi-colon vagaira ki to vo kat gye sirf aapke 15 hour complete c tutorial ki vajah se mujhe 28 marks aaye. Thanku so much bhaiya
question: agar me kuch variables declare kr du try ke andar aur unse kuch operation perform krke kya me unhe finally me delete kr du for a memory clean up purpose toh kya ye better rahega
Finally keyword is for function only o r any other use because if you write I am always executed outside the indentation of the function it will execute
Hi sir I'm currently pursuing my computer science engg and I'm in 2nd year and I'm stuck between choosing two fields i need your assistance whether to choose cyber security or become a full stack developer and if it is possible plz make a video on it
my suggestion - choose cyber security if you are good at it. You can see that syllabus and if interested then continue. Full stack is easy to learn because there are plenty of resources available. But for cyber security, not many resources. on youtube.
Agr koi hr video k end per qsn solve krna chata h to wo chat gpt per ja kr whan se us topic related info bhi le skta or gpt se qsn bhi jo k wo kdh se solve kr sake ye bhot acha way h kudh ko challenge krne ka 😊baqi exercise to di hui hen wo bhi solve krte rahe.
its very obvious that when ever return is encountered by interpreter it should end that Program there only but since try except finally is happening so interpreter needs to be super smart there and he always takes care that if i encounter return i have to make sure is there some finally keyword used by programmer so even though return is written before finally bcoz of the rule of programming (especially rule of try except finally) finally will print first always and all instructions/statment below the indent of finally but no other statement after finally gonna print (means outside of scope/indent of finally) ,than immediately return will executed !
Sir I am a student of 8th class . I have a good knowledge of python .also good at math . Can you tell me what should I do prepare for IIT or learn more and more programming. Because if I start preparing for IIT than my coding skill will get less . And getting a job without degree is too much hard . Because If I star
start working towards iit in 10th or after 10th... iit syllabus is of 11th and 12th you cant study that right now anyways..try falling in love with maths physics, give NTSE olympiads.. it will help you in 11th 12th ..mind also needs exercise make it strong.. and focus of college first, studying for it will improve your aptitude, one month of coding in good college will be equal to what you will do in whole 8th class. and iit nit provides you environment, imagine been friends with sharpest mind, playing and working with them day and night...you will be on right ship with right people... iit nit have unfair advantage, its easier to get internship, job in comparison to other college due to tag and value they hold and job market right now is not good for tier 3 college... big companies dont even come in small college where will showcase your skills then.. even if not job..iits is good platform to do research studies, u'll easily contact foreign profs
Hi Harry sir (💚ap ke Payton course ki videos is comments ke liya 💚) mera aap se ek question tha .....me to ek Arts ka Student huu ,... mene abi just degree complete ki hai arts me lakin utna interest nahi hai ...... Me web developer bannah chahata hu .... to mujhe kya konsi language sikhni chahiye ki me Google, Amazon jaise bare bare company me job pa saku ... Me time deneke liya ready 1 to 2 years.... Bas aap mujhe Roadmap bata do... me sikhne ke liya ready huu .... HTML & CSS sikha hai mene aap ki videos se Thank you 🙏💚💚💚
I faced the same issue several days ago while working on the fibonacci exercise... and im so glad you're literally answering our doubts without us even querying about them... thankyou so much and can you please explain fibonacci sequence exercise... im a bit confused... ❤
agr me without indentation ke print krdu to? mtlb ye to hai ki function se bahar hojayega but wo bhi to always print hoga na fir finally ki kya zaroorat?🤔
Day 37: In this course: 1] After understanding try except block, we understand new type of block used widely in Python and that is Finally. 2] Any code inside finally gets executed, irrespective of code present in try or except gets executed. 3] This is understood clearly by considering the below code: def func1(): try: l = [1,2,3,4] a = int(input("Enter the index value:")) print(l[a]) return 1 except: print("Some error occured") return 0 # Concept: any code in finally clause gets excecuted always, irrescpective of other chunk of code being either # in try or except block finally: print("I am always executed") x = func1() print(x) In this, if the line [print("I am always executed")] was not included in finally, then the function would only execute the valid block, in this case if index entered valid, then try block being executed, and the same for except. But once the line [print("I am always executed")] is enclosed inside finally clause, then if either try or block gets executed; if try executes, then finally will execute. Same for except as well. Thanks Harry bhai. Would love to meet you in person😊❤
i have a question!!!! if return statement was used in try/except clause which is before finally clause then why does "I am always executed" is being printed before 0/1????
KBC wala game jis jisne nahi banaya bana lo.Video record hone wali hai exercise ke solution ki
Harry bhai ye batao
Apki peheli python serious best hai yaa joh aap abhi banaa rahe ho woh best hai
me dal donga abhi
Sir banayo toh hain lekin readability nahi hain zyada but ha banaya woh bhi aapke 27th video k 1 ghante k andar andar 😅
Loveeee
LOVE YOU VAI😍
I am a two star Competitive Programmer and thanks to python and C taught by harry. I recommend this course to everyone. Just think about it you spend only around 10 minutes everyday for python you can learn it in 100 days.
you gotta practice other than those 10 minutes alone too brother
HARRY BHAI PLEASE HAR VIDEO KE END MEIN EK QUESTION DEKE JAYA KRO PLZ
Wright bro @code with harry yes 1question
I agree
Yes
Nah.. mere jaise aur beginners ke liye overwhelming hota hai
Jab log itne badhiya answers dal dete hai
Fir motivation chale jayega 70% logo ka
Ye nhi chahte honge vo
@@bayerwps3305 hmm
In this video lecture, we learnt about another clause of exception handling used for error handling, which is finally keyword. The block of code written inside finally clause is executed always irrespective of the retun of the values from try or except blocks in a function. This fianlly clause may be used for various purposes like closing some resourse files, closing the database connections or ending the program with some appreciative messages.
Bro how do we close resources using 'Finally' I didnt understand plz explain
excellent approach to explain "finally" statement, big thanks.
Harry bhai maja aa gaya ho! kal Python programming ki exam he aur aaj mene chalu kiya 20th videos aur 61th tak kiya. Maja aa gaya.
1. Desi Explanation (as well theoretical explanation )
2. Structured
3. Notes
Bhai udemy me jo premium course milte he na isse ye far better he.
Kal exam me jo pure marks ayge vo bhai apki baje se aur mainly jo python ka funda clear hua na bhai maja a gaya Bhai aap AI, ML jese bhi course chalu kar dijiye
Thanks Man!
Kitne marks aaye ? 👀
00:01 Finally keyword in Python for cleanup and error handling
01:13 Python finally keyword ensures that a section of code is always executed, whether there is an exception or not.
02:27 The 'finally' keyword in Python always executes, even if there is an error
03:17 Understanding the concept of the 'finally' keyword
04:21 Returning zero in Python indicates an error has occurred.
05:15 The 'finally' keyword ensures that certain code gets executed regardless of whether there is an error or not.
06:06 The 'finally' keyword is used to handle tasks such as database connection closure or file cleanup.
07:02 Review the Python course and leave your comments
try:
a=int(input("enter number one"))
b=int(input("enter number two"))
c=(input("enter +,-,*,/ for purticular action"))
match c:
case '+':
print("addition is",a+b)
case '-':
print("subtration is",a-b)
case '*':
print("multiplication is",a*b)
case '/':
print("division is",a/b)
case _ :
print('invalid input')
except:
print('error 400')
finally:
print("thanku for using my calculator")
Bro why did you gave these codes
Thanks Brooo
For this idea
we can simply use eval() function to make a calculator
a = input('enter your problem: ')
cal = eval(a)
print(cal)
@@moizzwaqas3071 thank you
try:
Learn Python programming
except Exception as e:
print(e)
finally:
Complete 100 days of Code by Harry
😉
Bhai parenthesis and brackets to laga le 😂
print("Jalwa hai bhai ka")
hello harry bhai , मैं ने तुम्हारे सारे python के विडियो देखे है | फिर भी डू दूबारा मस्त revision हो रहा है | you are the best Teacher 😍😍😍😍😍😍❤❤❤❤
finally is the way to escape the indentation of try and except while remaining inside the def
#DAY#37 Completed love from Bangladesh💚
please show some mercy to minorities there. Don't be an ungrateful pig.
Harry bhai I am ur big fan, and i request u to make a video on "where to start ur cyber security journey as a student"
Creating coffee vending machine
try:
coffee = ["red","green","yello"]
select =coffee[2]
except IndexError:
print("Invalid number")
finally:
print ("Thankyou sir!")
this is a fantastic course as it describe everything in such a short span of time which is unbelievable
Present Brother From Bangladesh....Again After four days..I am back on this course... #Day37 Done
Hello Harry Bhai, Plz make a Video on "'Subprocess Module" and other stuff related to that e.g PIPE, STDIN, STDOUT etc. thank You!
Harry thode question mil jaate toh aur maje aajate lekin ab samjhne m maja aaraha h
LOVE YOU HARRY BHAI❤
nice explanation harry bro . thank you
Please Bro Make A Java Full Course After This Series
Respective Sir !
According to variable naming rule in C, we can't use variable's first character any special symbol other then ( _ ) underscore, if i take variable as ( $age ) that is valid in gcc, so please tell me about that problem, how this possible?
Please sir !
Finally I got the answer, now in Programming there are two special symbol one is underscore ( _ ) and 2nd is dollar ( $ ) can be use in variable naming as a first character.
Harry bhaiya aapki vajah se mujhe mere 1st mid term me c language me out of 30 , 28 marks mile hai vo 2 marks bhi kuch galti ho gyi thi semi-colon vagaira ki to vo kat gye sirf aapke 15 hour complete c tutorial ki vajah se mujhe 28 marks aaye.
Thanku so much bhaiya
heyy can you tell me which course you are pursuing ??
kya hai sachin me lapu sa sachin hai bolney ko kuch avey na
😂😂🤣🤣@@bbamna5705
Pranam bhrata 🙏 apka bahutt baht dhanyawad ❤️😌🙏😇
#34 complicated
Love code with Harry 3000❤️
Thank you so much harry brother for giving us this python free course ❤️
day 37 completed
Finally python wali video aagaya 🙃
@CodeWithHarry have you made any videos on UI / UX design??
This course is very helpful for me and i will proud on harry sir❤
Present sir 🤚
It Made Finally Clear to me
All videos are awesome
Suggest python book which we can read with this course
Finally: it is always executed even the function is completed or break or say successfuly executed then also it will executed
question: agar me kuch variables declare kr du try ke andar aur unse kuch operation perform krke kya me unhe finally me delete kr du for a memory clean up purpose toh kya ye better rahega
Day #37 done!
Harry sir C# ki full tutorial series chahiye 🙏🏻❤️
Thank you so much, I was so confused as to why finally is used. This explained it.
Bhai what is your dream 😅
@@drakeeagle Who knows?
Finally keyword is for function only o r any other use because if you write I am always executed outside the indentation of the function it will execute
Harry bhai, Please is series me Asyncio bhi include karna , pura concept clear karwado bro
best teacher on youtube
Big fan of uh harry ✊🏻❤️
#day37 love you harry bhai
Hi sir I'm currently pursuing my computer science engg and I'm in 2nd year and I'm stuck between choosing two fields i need your assistance whether to choose cyber security or become a full stack developer and if it is possible plz make a video on it
my suggestion - choose cyber security if you are good at it. You can see that syllabus and if interested then continue.
Full stack is easy to learn because there are plenty of resources available. But for cyber security, not many resources. on youtube.
Harry Bhai Salesforce ka bhi course le aao Admin and Developer
Nice Playlists
Agr koi hr video k end per qsn solve krna chata h to wo chat gpt per ja kr whan se us topic related info bhi le skta or gpt se qsn bhi jo k wo kdh se solve kr sake ye bhot acha way h kudh ko challenge krne ka 😊baqi exercise to di hui hen wo bhi solve krte rahe.
Thank you
Bhai DSA with Python plz continue this series
Review : Very nice harry bhai i m too happpy that u started this course love ❤ u
The video is so useful.
Thank you sir for creating this video!
Present Harry Sir!
6:18 why is return zero executed after finally?
its very obvious that when ever return is encountered by interpreter it should end that Program there only but since try except finally is happening so interpreter needs to be super smart there and he always takes care that if i encounter return i have to make sure is there some finally keyword used by programmer so even though return is written before finally bcoz of the rule of programming (especially rule of try except finally) finally will print first always and all instructions/statment below the indent of finally but no other statement after finally gonna print (means outside of scope/indent of finally)
,than immediately return will executed !
Full maza aa gaya
DAY37-PRESENT SIR!
crazy explanation
I understand it, sir!
Sir I am a student of 8th class . I have a good knowledge of python .also good at math . Can you tell me what should I do prepare for IIT or learn more and more programming.
Because if I start preparing for IIT than my coding skill will get less . And getting a job without degree is too much hard .
Because If I star
start working towards iit in 10th or after 10th... iit syllabus is of 11th and 12th you cant study that right now anyways..try falling in love with maths physics, give NTSE olympiads.. it will help you in 11th 12th ..mind also needs exercise make it strong..
and focus of college first, studying for it will improve your aptitude, one month of coding in good college will be equal to what you will do in whole 8th class.
and iit nit provides you environment, imagine been friends with sharpest mind, playing and working with them day and night...you will be on right ship with right people... iit nit have unfair advantage, its easier to get internship, job in comparison to other college due to tag and value they hold and job market right now is not good for tier 3 college... big companies dont even come in small college where will showcase your skills then.. even if not job..iits is good platform to do research studies, u'll easily contact foreign profs
Sir bootstrap par bhi bna den course
Present !! Day 37
Review: Amazing content, I am thankful to you Harry bro❤
Present Sir on Day-37 ✋
I Am Present Harry Bhaiya❤❤❤❤❤❤❤
Thanks Harry bhai
Hi Harry sir (💚ap ke Payton course ki videos is comments ke liya 💚) mera aap se ek question tha .....me to ek Arts ka Student huu ,... mene abi just degree complete ki hai arts me lakin utna interest nahi hai ...... Me web developer bannah chahata hu .... to mujhe kya konsi language sikhni chahiye ki me Google, Amazon jaise bare bare company me job pa saku ... Me time deneke liya ready 1 to 2 years.... Bas aap mujhe Roadmap bata do... me sikhne ke liya ready huu .... HTML & CSS sikha hai mene aap ki videos se Thank you 🙏💚💚💚
I faced the same issue several days ago while working on the fibonacci exercise... and im so glad you're literally answering our doubts without us even querying about them... thankyou so much and can you please explain fibonacci sequence exercise... im a bit confused... ❤
Me too.....
Me too
agr me without indentation ke print krdu to? mtlb ye to hai ki function se bahar hojayega but wo bhi to always print hoga na fir finally ki kya zaroorat?🤔
same query
Thanks sir.
#day37 consistency maintain
23:00 03/01/2023
Thankyou
Concept clear
in 3:50 how did you space together in code
Hello Sir g.Present Sir from Pakistan!
Day 37 🔥
37th lecture done
Present Sir 🔥
Nice🎉
Really Amazing 👏
#Day37 Present Sir
REVIEW: very nice I have no problem
#day37 ✅
Bro AWS ka tutorial banavo pls
Harry bhaiya can you give python certificate on the basic of online test please bhaiya
Day 37: In this course:
1] After understanding try except block, we understand new type of block used widely in Python and that is Finally.
2] Any code inside finally gets executed, irrespective of code present in try or except gets executed.
3] This is understood clearly by considering the below code:
def func1():
try:
l = [1,2,3,4]
a = int(input("Enter the index value:"))
print(l[a])
return 1
except:
print("Some error occured")
return 0
# Concept: any code in finally clause gets excecuted always, irrescpective of other chunk of code being either
# in try or except block
finally:
print("I am always executed")
x = func1()
print(x)
In this, if the line [print("I am always executed")] was not included in finally, then the function would only execute the valid block, in this case if index entered valid, then try block being executed, and the same for except.
But once the line [print("I am always executed")] is enclosed inside finally clause, then if either try or block gets executed; if try executes, then finally will execute. Same for except as well.
Thanks Harry bhai. Would love to meet you in person😊❤
Bhai numpy or pandas par bi zero s video bnaa dooo apne jo videos bnayie hai vo 3 years s jyada purani ho gayi hai
i have a question!!!!
if return statement was used in try/except clause which is before finally clause then why does "I am always executed" is being printed before 0/1????
because return value will always be executed at last after all the code
@@shristirawat6332 ok ,thnks..... had already figured it out :)
Present Sir 🤚
present sir from Pakistan tharparkar more
print("I am Present")
Done Day 37
37th one!!
#day37 completed
Day 37 done
harry bhai 💯💯💯💯💯💯💯💯
Harry Bhai OP
Present||#100daysofcodechallange||day 37/100
Finaly ke andar return lagaye to chalega kya
MySQL pr ek video hoajaye🤗