Scopes and closure in python

Поділитися
Вставка
  • Опубліковано 18 січ 2025

КОМЕНТАРІ • 420

  • @sidharthkashyap6241
    @sidharthkashyap6241 10 місяців тому +15

    Very Informative video sir...Thanks a Lot.
    Also, a humble request to all my fellow learners, it is evident that only ten percent viewers are liking or commenting on this series....guys this man is giving enormous value to us....trust me , i have taken paid as well as international courses but the way he is teaching and elucidating such complex topics in Easy manner , it is rare. Th e least we can do is to motivate him through liking, subscribing, and sharing his content. Thank you.

  • @Lucifervishu
    @Lucifervishu 9 місяців тому +3

    sir doing awesome job to teach us

  • @AmitGusai-u7i
    @AmitGusai-u7i 11 місяців тому +9

    Out of the series in python, yours is the best one and in-depth

    • @skasr4124
      @skasr4124 9 місяців тому

      Thank you very much sir

  • @anujpoudel
    @anujpoudel 11 місяців тому +4

    even though i already know these concepts im still watching it and appreciating this playlist. It was unfortunate for me that i didn't have these videos when i started learning python and had to learn hardway and took so much time which shouldn't be the case. Thank you sir 😄

  • @nikhilgamercoc3166
    @nikhilgamercoc3166 11 місяців тому +40

    Sir, let's start with Django after completing the Python series. ❤

  • @yaswanthreddy2623
    @yaswanthreddy2623 6 місяців тому +1

    Initially it was very complex to understand the working of closures. But, after watching the 2nd time it was clear. Thank you hitesh sir.

  • @shivkojha
    @shivkojha 10 місяців тому

    I am learning these concepts from docs and got overwhelmed, suddenly reminded about you and came here, this is so clear now, going to learn from next video of Object oriented programming.

  • @YuktiGarg-gi8zh
    @YuktiGarg-gi8zh 7 місяців тому

    A great series from basic to advanced as he gives scope to 30 minutes that is finished by all the tutors in theory he is providing the implementation. A great Teacher, Thank you for this series.

  • @RabiyaShaikh2511
    @RabiyaShaikh2511 4 місяці тому

    Because of you Hitesh sir, I have develop my interest in coding. You are rare.

  • @AshharKhan-yy7zs
    @AshharKhan-yy7zs 22 дні тому

    Sir,You bring revolution by teaching such complex and tough topics in a easy and simple language.

  • @Coder-rohits
    @Coder-rohits 5 місяців тому +1

    your style and passion to take everything in depth is one of the thing which makes me crazy for programming

  • @justtt.prerna
    @justtt.prerna 11 місяців тому

    Idk but why this course is too underrated....In depth explanation, too easy to understand and implement , concepts are cleared for beginners too.

  • @shaikusman536
    @shaikusman536 8 місяців тому

    Finally Scopes & Closure simplified......Thanks Hitesh sir ji....Respect from Bangalore...

  • @mohitashliya8750
    @mohitashliya8750 9 місяців тому

    Hitest ji mera Javascript ka closures ka doubt bhi clear ho gaya, Hm hm magic, God bless you really helpful😆😆

  • @OMRAJSINGH-n4f
    @OMRAJSINGH-n4f 10 місяців тому +1

    Thank you sir for bringing us a top class python series , its way better than the Nptel python series which i left just after 2-3 lecture because it was so boring and after watching that i thought i will never be able to understand python, but after watching your lecture i am able to understand the things better and able to gain some confidence too.

  • @swarnabhamajumder9561
    @swarnabhamajumder9561 11 місяців тому

    Learning python day 11 - present sir
    00:02 Understanding scopes and namespaces in Python.
    02:17 Scopes and closure in Python
    06:08 Functions create separate memory spaces
    07:52 Understanding scope and closure in Python
    12:09 Understanding function parameter and scoping in Python
    14:35 Global scope and referencing in Python
    19:39 Understanding scopes and closure in Python
    21:51 Understanding scopes and closure in Python
    25:50 Understanding function definition and reference in Python
    27:46 Scopes and closure in Python

  • @timeless_tales2000
    @timeless_tales2000 8 місяців тому +1

    best python series on youtube so far

  • @MDFAIZANSARI
    @MDFAIZANSARI 10 місяців тому +3

    Closure explaination is very smooth.

    • @_little_master1874
      @_little_master1874 9 місяців тому

      chal jhuthe

    • @MDFAIZANSARI
      @MDFAIZANSARI 9 місяців тому

      @@_little_master1874 Closure ache se padhle, decorators smjhne me asani hogi... 😅

  • @pranaypaul6361
    @pranaypaul6361 11 місяців тому

    awesome explanation of closure.....not to think much just remember this example n apply the basic to any other closure case....things will fall in place automatically....

  • @iamprogrammer5054
    @iamprogrammer5054 4 місяці тому

    This person is a gem in teaching programming 🎉

  • @TheRawFootages
    @TheRawFootages 2 місяці тому

    num = int(input("Enter Number: "))
    def power(x):
    def number(num):
    return num ** x
    return number
    sqr = power(2)
    cube = power(3)
    print(sqr(num))
    print(cube(num))
    Input: 3
    Output: 9 and 27

  • @OMKARANAVKAR
    @OMKARANAVKAR 11 місяців тому +1

    Scope and closure concept explained well. Thanks for the video.

  • @krishnapalsingh2777
    @krishnapalsingh2777 11 місяців тому +1

    Mza A Gya😎😎

  • @akshaykudale4762
    @akshaykudale4762 6 місяців тому

    Great Sir. Thanks very much. Every student in engineering college should watch this.

  • @abhishekkumbhar7079
    @abhishekkumbhar7079 11 місяців тому

    awesome video on closure. I can able to relate with closure in JS from chai aur javascript series. Amazing teaching SirJi !!!💯💯💯💥💥💥💥💥💥

  • @AkashPandya9
    @AkashPandya9 4 місяці тому

    It's very first time I came these far in any tutorial series!
    Python rocks, so does our mentor! 🍵✨

  • @iamprogrammer5054
    @iamprogrammer5054 4 місяці тому

    In every video, I learn something new. Hats off Hitesh sir. Now you are my favourite teacher ❤

  • @yashdewani5377
    @yashdewani5377 Місяць тому

    sir i alredy learnd python from some one else but because of your teaching style i watched this series even i alredy know python please make videos on data science with python please sir

  • @CodeWithKushwaha
    @CodeWithKushwaha 3 місяці тому

    thanks, Hitesh sir, now I understand the concept of Closures...

  • @joondas8920
    @joondas8920 Місяць тому +1

    16:16 I guess it’s planned sir😂. Even I can clearly see the function is not called then it’s impossible that you will miss it. So obviously you set that thing up so that the logic gets rooted in our brains . Brilliant teaching ❤

    • @AmanKumar-ih4nq
      @AmanKumar-ih4nq 20 днів тому

      i was thinking the same. without calling fuction how will value change. :)

  • @afzalhamdulay
    @afzalhamdulay 11 місяців тому

    28:50 my mind was blown by the code. but when i apused the video and focused on the code for 2 minutes... i was like: "daaamnnnnn"

  • @deepanshuchaurasia4839
    @deepanshuchaurasia4839 11 місяців тому

    Bhai agar hitesh sir itna Accha content bna rhe h to comment or like karne main jata kya h sab kardo bhaiyo sir ka target

  • @alimohdbilalraza
    @alimohdbilalraza 6 місяців тому

    sir, Your lectures are awesome. please dont stop posting quality content for us on YT

  • @art3dhaven
    @art3dhaven 3 місяці тому

    Sir did great job to clear our fundamentals in starting now it is helping us

  • @hemantkumardas3333
    @hemantkumardas3333 11 місяців тому

    In your last video of this series, you taught Recursion very nicely...

  • @Dev-Phantom
    @Dev-Phantom 11 місяців тому

    One of the Best Series ever. Just Like your JS series

  • @anandstephan6020
    @anandstephan6020 11 місяців тому

    very nice video now i know the concept of clousure in both js and python

  • @anandshinde0358
    @anandshinde0358 9 місяців тому +1

    Thank you❤❤❤

  • @akshayanand1748
    @akshayanand1748 11 місяців тому +1

    amazingly amazing course sir ji🤩🤩

  • @AzeemKhan-sr4my
    @AzeemKhan-sr4my 9 місяців тому

    one of the best teacher 👍👍

  • @backspace11
    @backspace11 7 місяців тому

    Sir ne to bhot easy kar diya python ko

  • @aditya536
    @aditya536 6 місяців тому +1

    I like this series

  • @ArjunSharma-yk5xf
    @ArjunSharma-yk5xf 7 місяців тому

    Very insightful playlist. Thank you Sir

  • @shaali9381
    @shaali9381 4 дні тому

    good sir, You are my teacher

  • @himanshkataria6508
    @himanshkataria6508 8 місяців тому

    Thankyou so much sir, itna ache se samjhane k liye 😊

  • @Devika_1509
    @Devika_1509 11 місяців тому +1

    Well explained!! Thankss for telling

  • @varunpalsingh3822
    @varunpalsingh3822 9 місяців тому

    Sir at 26:40, chaicoder returns actual(x) defination, both are also taking a single argument, can we say these are curry functions, if not why is closer different from curry functions.

  • @SIR_Studios786
    @SIR_Studios786 11 місяців тому

    Getting confidence using python now, because python is not self explainatory, like, scope, like blocks ( as it is not using public, private, words, ie.e)

  • @sky.digitalmedia2732
    @sky.digitalmedia2732 9 місяців тому

    Thank you Sir for these amazing playlists💝💝

  • @aksh1453
    @aksh1453 11 місяців тому

    It's fun to learn when you give reference of javascript

  • @sheikhabdullah8298
    @sheikhabdullah8298 11 місяців тому

    Target trailer. Thank You Sir for tutorial

  • @meenakshimeeen
    @meenakshimeeen 4 місяці тому

    you are doing great sir.. thank you so much❤

  • @MudasirAbbas007
    @MudasirAbbas007 11 місяців тому +1

    Thank you Sir for these amazing playlists

  • @sheroichi7728
    @sheroichi7728 4 місяці тому

    outstanding , brilliant , spectacular

  • @ayushmishra5861
    @ayushmishra5861 11 місяців тому +2

    guys like target krdo yaar, I dont want it to stop, projects ke bina it would not be so fun

    • @ayushmishra5861
      @ayushmishra5861 11 місяців тому

      I mean to say, like the video and comment something valuable, I do not seek likes on my comment.

    • @suryanshusingh8863
      @suryanshusingh8863 6 місяців тому

      Ok

  • @ukashaanwerali6360
    @ukashaanwerali6360 10 місяців тому

    LOVE THE WAY YOU ARE TEACHING ❤

  • @mohitgaur4253
    @mohitgaur4253 11 місяців тому

    Your videos push me get a chai and code❤❤

  • @Zara-pn9im
    @Zara-pn9im 3 місяці тому

    what an explanation hitesh sir🥰🥰🥰🥰

  • @Abhay_Pandey_1
    @Abhay_Pandey_1 10 місяців тому

    Excellent explanation 👍

  • @JusBhan-uk2se
    @JusBhan-uk2se 11 місяців тому

    I have a question related to scope after going through class and object
    a = 100
    def add(x,y)
    print(x+y)
    class MyClass:
    def mymethod(self):
    print(a)
    add(1,6)
    Can I access the global variable a and function add
    inside a instance method(or any where in class body) . If yes can you please explain this.

    • @varadv3
      @varadv3 11 місяців тому

      Yes, you can access this global variable directly in same script anywhere after they being initialised

  • @muhammadadilnaeem
    @muhammadadilnaeem 3 місяці тому

    Awesome Explanation.

  • @Darkgamer_019
    @Darkgamer_019 11 місяців тому

    Sir hai toh best series❤❤🎉🎉

  • @MdJoy-gf6kv
    @MdJoy-gf6kv 11 місяців тому

    Thank you sir for this type of master class content

  • @nawazcode13
    @nawazcode13 11 місяців тому

    Thank you for bringing content consistently for us.

  • @rushikeshmodi4870
    @rushikeshmodi4870 8 місяців тому

    Thank you sir for such informative session

  • @rocsanket12
    @rocsanket12 8 місяців тому

    Best python series. 😄

  • @ritesh-dubey
    @ritesh-dubey 10 місяців тому

    Very well explained❤

  • @AzadKumar-zi5lm
    @AzadKumar-zi5lm 6 місяців тому +1

    Video 17 completed ✅

  • @jesussheepakash9289
    @jesussheepakash9289 4 місяці тому

    thank you sir, abhi samajh me aaya

  • @focus8070
    @focus8070 11 місяців тому

    it's great comparison of JavaScript every language have same concept only the syntax different , even we are using advance concept of other language in JavaScript but we don't aware of this and theoretically we are not able to describe most of time

  • @AnkurDwivedi-wx9kh
    @AnkurDwivedi-wx9kh 8 місяців тому

    best content online

  • @shaktidube7153
    @shaktidube7153 11 місяців тому +1

    Next js ki video kab AA Rahi hai , Announcement kare too 1 week ho Gaya sir , bohat respect hai aapke liye , hc sir op

  • @Rafian1924
    @Rafian1924 9 місяців тому

    Great series❤

  • @sumitram4132
    @sumitram4132 8 місяців тому

    Great lecture ❤

  • @AngelWhite007
    @AngelWhite007 10 місяців тому

    Best instructor

  • @NavdeepBhatt008
    @NavdeepBhatt008 11 місяців тому

    Very Good Explained..😌

  • @shahjankhan3835
    @shahjankhan3835 11 місяців тому

    thanku sir for these amazing palylist , please sir One video coming for (how to explain project )

  • @swastik6656
    @swastik6656 7 місяців тому

    am watching this video after 3 months of upload date..feeling bad to see the comment target still has not reached yet for the quality of content he is been providing...

  • @skasr4124
    @skasr4124 9 місяців тому

    Your channel is amazing

  • @random-videos-all
    @random-videos-all 11 місяців тому

    Very Well Done Sir Ji

  • @krishnamania1
    @krishnamania1 11 місяців тому +1

    thanks sir , ek series cs fundamentals jaise os dbms ki bhi sir

  • @muhammadhilal5807
    @muhammadhilal5807 10 місяців тому

    Great Explanation!

  • @arpanswain2876
    @arpanswain2876 11 місяців тому

    awesome work and great video sir

  • @SAGARKUMAR-el9ju
    @SAGARKUMAR-el9ju 10 місяців тому +2

    name = "test1"
    def test():
    print(name)
    name = "test2"
    print(name)
    I expected the output to be:
    test1
    test2
    But I got this error:
    UnboundLocalError: local variable 'name' referenced before assignment
    Please explain this. (If Python is an interpreted language, then the error shouldn't occur.)

    • @SAGARKUMAR-el9ju
      @SAGARKUMAR-el9ju 10 місяців тому

      But I didn't want to change value of name globally and not even want to change variable's name (name).
      And if python is interpreted language then why this error is occurring?

  • @rsvijaytiwari
    @rsvijaytiwari 11 місяців тому

    Continue this series 👏

  • @ItachiUchiha-ix5sg
    @ItachiUchiha-ix5sg 6 місяців тому

    nice concept and nicely taught

  • @sheroichi7728
    @sheroichi7728 4 місяці тому

    excellent explanation

  • @FarazAhmad-t6g
    @FarazAhmad-t6g 5 місяців тому

    nonlocal will be used to access nearest scoped variable

  • @maha33612
    @maha33612 10 місяців тому +1

    thanks alot sir ffor this series

  • @kashishrocks
    @kashishrocks 11 місяців тому +1

    Thanks a lot sir.

  • @Barunghorai-pn4vy
    @Barunghorai-pn4vy 9 місяців тому

    Thanku sir,,It is very helpful

  • @anuraggupta1008
    @anuraggupta1008 11 місяців тому

    Now i am getting confidence in python

  • @skasr4124
    @skasr4124 9 місяців тому

    Sir ji thanks for your support

  • @Shishir.435
    @Shishir.435 10 місяців тому

    Thank you so much sir for this palylist.

  • @Prashantsharma-yf7nq
    @Prashantsharma-yf7nq 11 місяців тому

    Tqsm sir for amazing lectures.

  • @amankumarsaha8671
    @amankumarsaha8671 7 місяців тому

    29:20 sir apna chaicoder ma 2,3 dekar num ki value assign kar di par x ki value ko kaisa assign kiya ? isa samajna ma problem aa rahi ha

  • @RohitChhabirajYadav
    @RohitChhabirajYadav 10 місяців тому

    Best Course on Python

  • @KritikaGoswami-k2b
    @KritikaGoswami-k2b 10 місяців тому

    Thanks for this amazing content...

  • @AngelWhite007
    @AngelWhite007 10 місяців тому

    you are the best sir!

  • @sknazibulhossain4901
    @sknazibulhossain4901 11 місяців тому

    Love thus series ❤