Solve 10 problems on functions in python

Ойын-сауық

Visit chaicode.com for all related materials, community help, source code etc.
Welcome to chai aur code, a coding/programming dedicated channel in Hindi language. Now you can learn best of programming concepts with industry standard practical guide in Hindi language.
All source code is available at my Github account:
github.com/hiteshchoudhary
Our Open-Source Project is here: freeapi.app
Join me at whatsapp: hitesh.ai/whatsapp
for community discord: hitesh.ai/discord
Instagram pe yaha paaye jaate h:
/ hiteshchoudharyofficial
HTML video series: • HTML and VSCode - gett...
Complete javascript series: • Javascript for beginne...
Complete Reactjs series: • React JS roadmap | cha...
Javascript and react interview series: • 1 call se shuru hui pl...
Backend development with Javascript: • Javascript Backend Roa...
Python Series: • Python series launch |...

Пікірлер: 386

  • @justtt.prerna
    @justtt.prerna5 ай бұрын

    I know some basics of python but whenever I watch your videos , I consistently gain new insights and knowledge.

  • @TooniMe

    @TooniMe

    4 ай бұрын

    But your code shows errors lol

  • @sheikhabdullah8298
    @sheikhabdullah82985 ай бұрын

    Sir, apke help se hum sab to hopeful hain... Thanks Alot!

  • @SadmanSakib2001
    @SadmanSakib20015 ай бұрын

    51:00 So, basically what I've understood, "yield" is kind of like the "static" keyword which is used in c/c++. when we say, "static int a = 5;" inside of a function & we call that function multiple times or call that function using a loop, that static variable "a" saves it's previous state in memory & performs the next tasks with it's previous state every single time function is called. not saying they are the same. But yeah, i found it familiar.

  • @priya_chauhan1258
    @priya_chauhan12584 ай бұрын

    20:12 1) first method Below formatted variable will be displayed with 5 decimal values formatted = "{:.5f}".format(9.999875698989) print(formatted) # output : 9.99988 And suppose we write like this formatted = "{:.3f}".format(9.999875698989) print(formatted) # output : 10 Then it will return 10 as output. 2) using round() In this function we will pass two parameters, first is our value or variable and second is how many decimal values we want. Example_1: Number = 5.375829473 print(round(Number,2) # output : 5.36 Example_2 : print(round(5.53627894,2)) # output : 5.53

  • @aditya536

    @aditya536

    13 күн бұрын

    Great! The format method was new to me.

  • @dakshbhatnagar
    @dakshbhatnagar5 ай бұрын

    51:07 I have worked on some personal projects in deep learning and one use case of yield is handling huge amount of datasets where we need to fetch a batch of numbers from the datasets to perform calculation of gradients during backpropogation which is a way to optimized neural networks loss calculations

  • @zakirdev
    @zakirdev4 ай бұрын

    I have been working as a software developer since 2019. I have started coding since 2014. I have watched a lot of tutorials and read many books. But today I understood "Generator" properly. Thank you sir, you are really great. ❤❤

  • @pranaypaul6361
    @pranaypaul63615 ай бұрын

    Kudos to you, sir, for explaining yield in such a simplified manner, as if you were explaining it to a 5-years-old.

  • @shaikusman536
    @shaikusman5362 ай бұрын

    Super Guru ji.....Very insightful.....You are a great teacher Hitesh sir ji....keep up the great work......Respect from Bangalore...

  • @atharvatirkhunde4517
    @atharvatirkhunde45174 ай бұрын

    thank you sir. I came to know about yeild for the first time. One application of args is in shoping cart.

  • @hellohere-pu8uj
    @hellohere-pu8uj29 күн бұрын

    19:52 import math def circle_stats(radius): area = math.pi* 2 * radius**2 circumference = 2 * math.pi * radius return area, circumference a, c = circle_stats(3) print(f"Area = {round(a,2)} Circumference = {round(c,2)}")

  • @shikharpandya4927
    @shikharpandya49274 ай бұрын

    amazing video :) TimeStamp:- 20:24 Precision upto x decimal places can be achieved by using round(variable_name,x)

  • @ankuuur
    @ankuuur5 ай бұрын

    51:24 -- sir maine pehle ek baar school ke time yield padhne ki koshis ki thi but samjh nahi aya tha! but is bar kaafi cheesein clear hui hain.

  • @kishandata23
    @kishandata235 ай бұрын

    ❤ the way of teaching Direct jump on hands on approach

  • @prabhatthakur8730
    @prabhatthakur87305 ай бұрын

    Now I'm feeling that I'm diving into the internal working of python. The way he explains every topics that is phenomenal. I'm regularly waiting for his python series videos. Thanks sir for making this wonderful series.

  • @MDFAIZANSARI
    @MDFAIZANSARI4 ай бұрын

    Every topic is explained very neatly and clearly.

  • @sidharthkashyap6241
    @sidharthkashyap62414 ай бұрын

    Amazing content sir..❤..if you plan to make another lecture, plz dive in little more in Recursion and Yield concept .

  • @umeshkr9316
    @umeshkr93162 ай бұрын

    thank you so much for teaching us in depth, lots of love from Jharkhand

  • @shivkumarpatel8464
    @shivkumarpatel84645 ай бұрын

    Thank you so much sir , we really love this series also. ❤❤

  • @virendrthakur7865
    @virendrthakur7865Ай бұрын

    this is my favorite youtube channel , nice teaching sir ji

  • @Barunghorai-pn4vy
    @Barunghorai-pn4vy3 ай бұрын

    You are the best teacher,❤ in this platform,,

  • @Entertainment-xu1qc
    @Entertainment-xu1qc5 ай бұрын

    the best channel to learn Python. need flask tutorial too Sir.

  • @anuraggupta1008
    @anuraggupta10085 ай бұрын

    Sab mil kar appreciate kro yr sir ki dedication ko quality content ke liye..😊

  • @samarthkhakhkhar6703
    @samarthkhakhkhar67034 ай бұрын

    I love your teaching hitesh sir !!! I connect with you in coding

  • @ashishkumarbhagwani6931
    @ashishkumarbhagwani6931Ай бұрын

    We do use round method for getting precise values. e.g., round(number, 2) for getting precision upto 2 digits.

  • @softNandan
    @softNandan5 ай бұрын

    Solution of 20:26 : print(“area:”,round(a,2),”circumference”,round(b,2))

  • @shaikusman536

    @shaikusman536

    2 ай бұрын

    Thanks buddy..........

  • @khushivyas970
    @khushivyas9703 ай бұрын

    Thank you so much sir for ❤ I love your way to teach and enjoying ever vedio of Chay and code .thank you❤

  • @ShivamMishra-ut1cd
    @ShivamMishra-ut1cdАй бұрын

    Thank you Sir, You really made thing so easy to understand.

  • @shaikusman536
    @shaikusman5362 ай бұрын

    Awsome Guru ji.......Pls make more videos on python DSA focused on Data Science and Machine Learning........Respect from Bangalore...

  • @kumargupta7149
    @kumargupta71495 ай бұрын

    Love this way of solving problem learning ❤

  • @vishalkandu1031
    @vishalkandu10315 ай бұрын

    sir aapko killvish ko bhi add karna chahiye tha main villan ki tor pe wese is tarike se python ke function ko sikh kar ke maza hi aa gaya love from mumbai sir ji ❤❤

  • @VARUNVERMABCE
    @VARUNVERMABCE5 ай бұрын

    Sir whatever you will to teach I'll learn all of it

  • @epslearns
    @epslearns4 ай бұрын

    19:45 Precision can be achieved using round() function as given below: def circle_stats(radius): area=math.pi*radius**2 circumference=2*math.pi*radius return *round(area,2),round(circumference,2)* print(circle_stats(5)) (78.54, 31.42) *Further, can we round off multiple values at once instead of doing separately for each one?*

  • @subratkumarnayak2560
    @subratkumarnayak256026 күн бұрын

    really loved this way of learning...

  • @hemantkumardas3333
    @hemantkumardas33335 ай бұрын

    Very nicely explaining sir...

  • @anujmishra3683
    @anujmishra36834 ай бұрын

    Thank you so much for deep explanation it is very helpful sir

  • @hetashrikansariwala9527
    @hetashrikansariwala95275 ай бұрын

    Thank you sir for building this things easily

  • @surajupadhyay1957
    @surajupadhyay19574 ай бұрын

    bahut achha lagta h sir ap se sikhane me

  • @abhirajsinha23
    @abhirajsinha233 ай бұрын

    Such in depth explanation is astonishing in free courses! 🙌

  • @umar155
    @umar15516 күн бұрын

    I have never ever seen this kind of teaching 🙏,Thank you sir for you your efforts for us.

  • @winter_1306
    @winter_13065 ай бұрын

    reached functions!🥳 was left behind a few videos for a while, but covering it up!!!!🤧

  • @tuhinghosh9737
    @tuhinghosh97375 ай бұрын

    Now "yield" is very clear to me ❤

  • @UpendraYadav-gc3bd
    @UpendraYadav-gc3bd5 ай бұрын

    Best Video Ever on Functions

  • @user-zy9hw4yi2p
    @user-zy9hw4yi2p5 ай бұрын

    Exited for the series that will based on python, Please start with Django if possible, It will be next level in your style and explanation in depth ♥

  • @afzalhamdulay

    @afzalhamdulay

    5 ай бұрын

    yup. django from his side will be amazing

  • @mahipalsingh-pc4mo
    @mahipalsingh-pc4mo3 ай бұрын

    really a good teaching technique sir

  • @ishatiwari3023
    @ishatiwari30232 ай бұрын

    very helpful video for a new learner!

  • @countryno446
    @countryno4462 күн бұрын

    The way he explained Yield keyword is beautiful !! LoveFromINDORE

  • @arnabpal5407
    @arnabpal54074 ай бұрын

    thank you for adding project at the end 🙌🙌

  • @sidhantarya2483
    @sidhantarya24835 ай бұрын

    amazing way of teaching functions

  • @jd26831475
    @jd268314755 ай бұрын

    for Area and Circumference exercise, we can use Round of method to get result printed by 2 or 3 digits.

  • @himanshkataria6508
    @himanshkataria65082 ай бұрын

    Thankyou so much sir for scenario teaching ❤

  • @muhammadhilal5807
    @muhammadhilal58074 ай бұрын

    To avoid those recurring decimal in solution_04, we can use round() method to avoid those recurring decimals and can convert it to 1 , 2 or any decimal place you like. Source Code: import math def circle_stats(radius): area = round(math.pi * radius ** 2,2) circumference = round(2 * math.pi * radius,2) return area, circumference a , c = circle_stats(3) print("Area: ", a, "Circumference: ", c)

  • @SamiButt-bc2xh

    @SamiButt-bc2xh

    Ай бұрын

    import math def circle(radius): area = round(math.pi*(radius**2),2) circumference = round((2 * math.pi * radius) ,2); return area , circumference; r = int(input("Enter Radius: ")) a , c = circle(r) print("The Area is: ",a) print("The Circumference is: ",c)

  • @SamiButt-bc2xh

    @SamiButt-bc2xh

    Ай бұрын

    in your code you are not defined how many precision after point like 2,3or 4

  • @vishalrathore7052
    @vishalrathore70523 ай бұрын

    very nice recursive problem solving approch

  • @viditvats5733
    @viditvats57334 ай бұрын

    We can use the f-strings functionality. For example, if we want precision up-to 2 digits, then we can type: - print(f"Area : {a:.2f} Circumference: {c:.2f}")

  • @mohdsuhail2470
    @mohdsuhail24702 ай бұрын

    Thanks sir! Great work

  • @khulvemeenakshi
    @khulvemeenakshi2 ай бұрын

    Great content...nice explanation

  • @vandanapatil8182
    @vandanapatil81825 ай бұрын

    Explanation of Recursive function with pen & diagram sir 😊

  • @M-ShivamMole
    @M-ShivamMole14 күн бұрын

    Could you please consider launching a new series on core advanced Java? Topics like concurrency, JVM internals, and performance optimization would be really helpful. Looking forward to more great content from you!

  • @bharatsinhparmar3666
    @bharatsinhparmar36664 ай бұрын

    Nice bro, extremely good yield is best

  • @ArjunSharma-yk5xf
    @ArjunSharma-yk5xfАй бұрын

    Very insightful contents Sir

  • @gautamraj8114
    @gautamraj81145 ай бұрын

    This series YIELDS in depth knowledge.😁😁

  • @not_amanullah
    @not_amanullah4 ай бұрын

    This course is helpful ❤

  • @mohitnemade5320
    @mohitnemade5320Ай бұрын

    Nice video for learners 👏👍

  • @deepakkgupta
    @deepakkgupta5 ай бұрын

    Amazing explanation sir ❤

  • @nikshadali50
    @nikshadali505 ай бұрын

    Thank you Sir for your efforts

  • @KHUSHBOOPRAJAPATI-me6yj
    @KHUSHBOOPRAJAPATI-me6yj8 сағат бұрын

    Thank you sir cover the function topics

  • @harshita2163
    @harshita21635 ай бұрын

    You are providing Amazing content

  • @TirthPrajapati-by9mu
    @TirthPrajapati-by9mu5 ай бұрын

    To handle precision for float value round(number, d)

  • @aashishrai1138
    @aashishrai11385 ай бұрын

    Sir aap ase hi solve 10 problems vale video JavaScript k liye bhi bna do

  • @hari_1357
    @hari_13575 ай бұрын

    Thank you soooooo much sir!!

  • @RonnieSingh-yz6gn
    @RonnieSingh-yz6gn3 ай бұрын

    Kyu aap ke itne sahi or behtreen course❤ ko like nahi kar raha.

  • @manojbhardwaj87
    @manojbhardwaj875 ай бұрын

    great video quality ♥

  • @AnuragGupta-ov8dz
    @AnuragGupta-ov8dzАй бұрын

    Wonderful content❤

  • @RohitChhabirajYadav
    @RohitChhabirajYadav4 ай бұрын

    Best Video for python

  • @yashdodiya5388
    @yashdodiya53884 ай бұрын

    Thank you so much sir

  • @Waleedkkhan594
    @Waleedkkhan5945 ай бұрын

    thank you for the content sir

  • @rushikeshmodi4870
    @rushikeshmodi48702 ай бұрын

    Best python tutorial ever

  • @siddharthpandey8577
    @siddharthpandey85774 ай бұрын

    Amazing bhaiya ❤

  • @AmritKumar-sk8jo
    @AmritKumar-sk8jo19 күн бұрын

    nice explanation!!!

  • @samiran__roy
    @samiran__roy5 ай бұрын

    best creater of youtube

  • @AdityaSharma-fc1sx
    @AdityaSharma-fc1sx5 ай бұрын

    Thank you so much sir ❤❤

  • @anuraggupta1008
    @anuraggupta10085 ай бұрын

    Please yr sab mil kr appreciate kro channel ko chai aur code 😊❤ Yaha behind the scenes sikhne ko milta hai

  • @Barunghorai-pn4vy
    @Barunghorai-pn4vy3 ай бұрын

    Sir,For the question no.3 When two inputs are taken from the user like one is int and other is string types without direct passing as an argument then what will be happend ??

  • @anuraggupta1008
    @anuraggupta10085 ай бұрын

    Yr 900 views h fir bhi 400 comment kyu nhi hai😢 support kro yr sab chai aur code ko

  • @ankuuur
    @ankuuur5 ай бұрын

    Thank you sir💖💖😊😊

  • @user-ue6fv5pi8t
    @user-ue6fv5pi8t5 ай бұрын

    Kudos to you, sir,

  • @rocsanket12
    @rocsanket122 ай бұрын

    Awesome series

  • @yashrahadve
    @yashrahadve3 ай бұрын

    "This series is a hidden treasure for programmers."

  • @abhinayjangde
    @abhinayjangde5 ай бұрын

    Really amazing videos

  • @arjunbhandari1672
    @arjunbhandari1672Ай бұрын

    Loving These Pytho_Series❤

  • @rakeshojha5246
    @rakeshojha52465 ай бұрын

    Class was awesome

  • @HaCapthiank
    @HaCapthiank5 ай бұрын

    sir ji, tu si great ho 😊

  • @user-wb8np5kv6e
    @user-wb8np5kv6e5 ай бұрын

    Best python playlist

  • @mohammadahmad19
    @mohammadahmad195 ай бұрын

    Well Done Sir ji

  • @wazidmalik6824
    @wazidmalik68245 ай бұрын

    Great content.

  • @pratiksingh07
    @pratiksingh072 ай бұрын

    Sir please make videos on data structures and algorithms for python

  • @pra438
    @pra4385 ай бұрын

    Very nice lecture

  • @harshakp06
    @harshakp064 ай бұрын

    28:21 cube = lambda x : x**3 a = cube(4) print(a) print(cube(3)) it seems we can lambda like as def

  • @harleeneyd
    @harleeneyd4 ай бұрын

    20:10 we can use round() method :)

  • @ketanmali264
    @ketanmali2645 ай бұрын

    Thank you so much sir 😁

  • @mehak_rakesh_sharma
    @mehak_rakesh_sharma3 ай бұрын

    thanku sir ji

Келесі