Scope, Global Variables and Global Keyword | Python Tutorials For Absolute Beginners In Hindi #33

  Рет қаралды 287,425

CodeWithHarry

CodeWithHarry

5 жыл бұрын

►Source Code + Text Tutorial - www.codewithharry.com/videos/...
►Full Python tutorials for absolute beginners (Hindi) playlist - • Python Tutorials For A...
►Click here to subscribe - / @codewithharry
Best Hindi Videos For Learning Programming:
►Learn Python In One Video - • Learn Python In Hindi ...
►Learn JavaScript in One Video - • JavaScript Tutorial
►Learn PHP In One Video - • Learn Php In One Video...
►Machine Learning Using Python - • Machine Learning Tutor...
►Creating & Hosting A Website (Tech Blog) Using Python - • [Hindi] Web Developmen...
►Advanced Python Tutorials - • Intermediate/Advanced ...
►Object Oriented Programming In Python - • Object Oriented Progra...
►Python Data Science and Big Data Tutorials - • Python Data Science an...
Follow Me On Social Media
►Website (created using Flask) - www.codewithharry.com
►Facebook - / codewithharry
►Instagram - / codewithharry
►Personal Facebook A/c - / geekyharis
Twitter - / haris_is_here

Пікірлер: 684
@wiseexplorer1618
@wiseexplorer1618 3 жыл бұрын
explaining the scope as govt ka paisa and apna paisa is a very good example👍🏻👍🏻
@gautambh375
@gautambh375 3 жыл бұрын
bhaii 8:14 me global ke baad x accept ho raha h tera mera nhi ho paya kya galti hogi kuch pata h
@nolimits0620
@nolimits0620 3 жыл бұрын
@@gautambh375 aap apna code bhejo
@thestrugglingguy6525
@thestrugglingguy6525 3 жыл бұрын
dear harry sir, 10:57 Quiz-: that will print 88 because the global keyword will go outer side of the nested functions and read for any variable 'x', and it will be successful also, so that will change the value of x(89) to x(88). Thanks for this great content.
@lowcodenocode825
@lowcodenocode825 3 жыл бұрын
yz
@azlanrajput553
@azlanrajput553 2 жыл бұрын
thanks for the answer of quiz :)
@digitalcodingwithyashu6557
@digitalcodingwithyashu6557 2 жыл бұрын
hey who are you man please tell me, man
@azlanrajput553
@azlanrajput553 2 жыл бұрын
@@digitalcodingwithyashu6557 what you want to know?
@fahadjavaid7126
@fahadjavaid7126 2 жыл бұрын
nice
@mahaminmondal6248
@mahaminmondal6248 5 жыл бұрын
I'm a mechanical engineer but I always wanted to learn programming. Thanks to you that you have created a channel and started to teach us programming.. Don't stop teaching.. You're a great teacher. Loved your lessons.. Keep it up!!
@mukeshkacha9201
@mukeshkacha9201 5 жыл бұрын
same here bro.......i am mechanical engineer but always wanted to learn programming .. like this...good channel for python learning......in this tutorials harry always try to explain with which problems beginner will face......
@patelayushmukesh2924
@patelayushmukesh2924 4 жыл бұрын
Same here, I am also a mechanical student I love to learn python programming.
@robosapien1413
@robosapien1413 3 жыл бұрын
same here bro .......ithink we should make a group of mechanical engineers ..........please join in telegram @mechnorobes
@rajeevmishraa
@rajeevmishraa 2 жыл бұрын
Same here I am a gig worker
@marufahamedsagor5525
@marufahamedsagor5525 Жыл бұрын
Same
@utsabbashyal7929
@utsabbashyal7929 5 жыл бұрын
lots of love from Nepal sir thank you
@snehapatil9813
@snehapatil9813 4 жыл бұрын
I would like to thank you for the efforts you have made. I am hoping the same best work from you in the future as well. Please make videos on Machine Learning, AI, Data science.
@yashgandhi4675
@yashgandhi4675 5 жыл бұрын
Awesome videos bhai ... apke efforts se sab log acha sikh rhe hai including me ... keep going harry bhai
@Press-vh1ix
@Press-vh1ix Ай бұрын
one of the finest yt channels for learning python
@amantiwari8316
@amantiwari8316 3 жыл бұрын
Literally this video is very helpful for me... you don't believe I've watched this video many times whenever I forgot this topic, and even I've refer this video to many of my friends who often encounter same problem. Really it's amazing and concept clearing video sir....thanks😘😘
@sajidakhan2962
@sajidakhan2962 4 жыл бұрын
U are a superb teacher ❤❤❤ God bless u.. u are helping so many people by providing this course..thnku..this lec was really interesting and i understood whtever u taught in this video..thnku so mucch for such videos
@prempratapsingh7323
@prempratapsingh7323 3 жыл бұрын
Thankyou harry bhai 1 week ho gya hai start kre & literally you r osm the way you teach like a friend # sab samaj aata hai or acche se
@rishabhsharma329
@rishabhsharma329 4 жыл бұрын
This is fantastic. Thank you so much !
@abhishek-hb1vg
@abhishek-hb1vg 5 жыл бұрын
Bhai may nay literally tail bachata. You are just awesome. Your teaching techniques sense of humor really awesome. Keep up the good work. Bhai ek interview tips ya fir resume/linkedin profile builder jesa koi video bana do plz. Keep up the good work.
@abhinowyt8564
@abhinowyt8564 4 жыл бұрын
00:01 "harry bhai bahut achhe hain " output XD :-)
@nc8002
@nc8002 3 жыл бұрын
thank you so much for the nested example. i was searching about it all over the internet but could only find it here. tysm!!!!!
@anmolsinghal484
@anmolsinghal484 3 жыл бұрын
The way you explained, the govt. explanation.. was quite awesome.
@konozbinrashid7774
@konozbinrashid7774 Жыл бұрын
Hamesha ki tarhan zabardast Harry bhai!
@flamboyantperson5936
@flamboyantperson5936 5 жыл бұрын
bhai aap ho kya??? itna easily concept samjha dete ho jaise maza chal raha hain... Tussi great ho harry bhai. Thank you very much. Subha subha harry bhai ki class ho toh padhne me maza he aajata hain :-) :-)
@urgebharadwaj9081
@urgebharadwaj9081 2 жыл бұрын
The way you explain is exceptional !!! Thankyou bhaiya❤️.. aapka python full course in hindi wala video dekh ke maine bht kuch sikha... Thankyou once again!!❤️😊🙏
@ehtishamraza2623
@ehtishamraza2623 5 жыл бұрын
Kamal ho ap sir g
@abhaytiwari2175
@abhaytiwari2175 3 жыл бұрын
I was too confused about Global Keyword but you cleared my doubts Thank you CodewithHarrybhai
@noobcoder_5114
@noobcoder_5114 4 жыл бұрын
thankyou harry bhai aap hamare liye bahut mehenat karto ho
@avadhutkulkarni4534
@avadhutkulkarni4534 2 жыл бұрын
11:03 It will print 88 because above the code x = 88 we have written global x which will change the value of the x that is written outside the function the value was 89 but by the global function it will make it 88 and hence it will print 88
@AbdulSalam-pv6es
@AbdulSalam-pv6es 2 жыл бұрын
11:02 It will print 88 because in the rohan function you used global keyword which go out of the function and search for the global variable x and after finding it will change its value to 88 and print the value.
@kingof70080
@kingof70080 2 жыл бұрын
Best channel of hindi coding😇
@olive_adi
@olive_adi 3 жыл бұрын
Thanks for helping us to learn python and many more..
@sankalpjha2836
@sankalpjha2836 2 жыл бұрын
just wanted to say thank you harry sir♥ because of you only mene cpp, java, or python sikhi or exams me bhi accha perform kia, thanks a lot
@netuse4956
@netuse4956 4 жыл бұрын
excellent explanation,i found my answer ... thank you sir
@deependrakumarrout4172
@deependrakumarrout4172 5 жыл бұрын
Me 10 bar dekha bhai or pura clear thanks Harry bhai
@SimranCE-
@SimranCE- 3 жыл бұрын
Very remindable example to understand this code 🎉
@ManpreetKaur-gy3kl
@ManpreetKaur-gy3kl 2 жыл бұрын
now i got the solution of the problem. thanks,
@gyaneshsatyawali2206
@gyaneshsatyawali2206 2 жыл бұрын
It will print 88 but if we call the function harry() after the print statement it will print 89 because first it searchs globally but sees that the user has called a function and then prints the x value in the function. Thank you for such quality content.
@nitinpatil-gf7jt
@nitinpatil-gf7jt 4 жыл бұрын
Harry. You are awesome man...
@ashishshourya9120
@ashishshourya9120 5 жыл бұрын
harry ji plzz share the blog link of python contents, your videos tutorial are great help in learning python technology, thanks dude...
@unmindedcoder8638
@unmindedcoder8638 3 жыл бұрын
first, it will print x as 20 because the first time x is printed under harry() function and harry() function has its own value of x and then it will print x as 88 because when the harry() function called rohan() function also called andit changed the value of x from 89 to 88 with the help of global variable
@Sunshine9p
@Sunshine9p 3 жыл бұрын
10:58 : Harry bhai I think the print(x) will print 88 cuz when you call harry() rohan() is also executed. So it will change the value of global x as 88. Thus the print() function will return 88
@chiragrajvaniya2362
@chiragrajvaniya2362 2 жыл бұрын
Thanks 🙂
@sofii515
@sofii515 2 жыл бұрын
Thanks for the brilliant lecture
@zeeskhan5661
@zeeskhan5661 2 жыл бұрын
I just get the conception of global keyword only watching one time great work harry bhaiya
@vikashdas1852
@vikashdas1852 3 жыл бұрын
Zabarsast smjhate ho bhai. Thank You.
@saharayub4448
@saharayub4448 2 жыл бұрын
best explanation! thnx dude!
@muddasirkhan6838
@muddasirkhan6838 3 жыл бұрын
harry bhai u r the great
@thecricketmic3504
@thecricketmic3504 3 жыл бұрын
thanks it really helped
@chococandy8009
@chococandy8009 3 жыл бұрын
Thnku sir
@syedfarhanali9527
@syedfarhanali9527 3 жыл бұрын
zabardast !!!!!!!
@hari_1357
@hari_1357 3 жыл бұрын
Thanks a lot Harry bhai🙏
@shreyaskulkarni7417
@shreyaskulkarni7417 3 жыл бұрын
Too good!!!!!
@adityapaluskar
@adityapaluskar 4 жыл бұрын
Sir the output for the harry() will be 88 because as you mentioned the global keyword will directly search for the x out of the def harry() and the x = 89 will be changed to x = 88 and the output for it definitely will be x = 88
@mayurthorat512
@mayurthorat512 4 жыл бұрын
Shukriya bhai ✌️👍
@moulikraina2186
@moulikraina2186 2 жыл бұрын
Very useful it is
@arifanwer8189
@arifanwer8189 5 жыл бұрын
Maine galat guess kiya tha first time 89 but fir se video dekha tab smj aaya then 88 ,great bhai jaan apki video tutorial mai daily follow kr raha hu ...
@adityathorat209
@adityathorat209 4 жыл бұрын
You are great bro
@vaibhavvaish7046
@vaibhavvaish7046 4 жыл бұрын
I love ur way of teaching
@cocomoco902
@cocomoco902 3 жыл бұрын
Thankyou so much
@dhavalparekh1606
@dhavalparekh1606 Жыл бұрын
As mechanical engineer coding is easy i have never expected. Thank you so much...
@brucebane7401
@brucebane7401 3 жыл бұрын
awesome!!!!
@sudiptoparua1757
@sudiptoparua1757 2 жыл бұрын
Verry interesting explanation
@AdityaRaj-rj6fv
@AdityaRaj-rj6fv Жыл бұрын
my ode is working after watching this video. Thank you
@pateljaykishan7433
@pateljaykishan7433 Жыл бұрын
really helpful
@akashisgreat_
@akashisgreat_ 3 жыл бұрын
Useful Video, my problem Solved after see this video.......
@faizanalso
@faizanalso 2 жыл бұрын
hello harry i like your video i also learn html css js and now py
@adityagiri8069
@adityagiri8069 2 жыл бұрын
Yes sir understood
@usamanadeem8504
@usamanadeem8504 4 жыл бұрын
Thank you MASTER!!!!
@buddhadebbairagi2022
@buddhadebbairagi2022 3 жыл бұрын
Very well explained.
@I_m_Samar
@I_m_Samar 3 жыл бұрын
harry bhai, answer is 88 because we have assigned x as a global variable and also get the right to change it by typing global x so it we will give the changed number not the globally assigned number.Thank you all because of you i am here answering your quiz question because you teached me.
@aratisingh9631
@aratisingh9631 2 жыл бұрын
answer to the quiz of the day is 88 because global keyword will go in outer side of program and search for any variable x and then search will become successful and it will change value of x from 89 to 88 thanks bro for this amazing content
@rishabhupadhyay8165
@rishabhupadhyay8165 2 жыл бұрын
Bhaiya thankyou so much..
@rishabhkamboj2864
@rishabhkamboj2864 Жыл бұрын
Thank you bhai 😍
@anjalibajaj8824
@anjalibajaj8824 4 жыл бұрын
Great lectures. sir
@lilyfullery4779
@lilyfullery4779 Жыл бұрын
Thanks harry
@rudramondal7993
@rudramondal7993 3 жыл бұрын
harry bhai me to apke video 2 3 bar dekta hu . thankyou fot yhe video. waiting for your new pytyhon tutorial series
@rudramondal7993
@rudramondal7993 3 жыл бұрын
harry bhai ap thora batana please "before calling rohan" kyu 20 ho raha hae, wo to alag funcation me hae .y 20 is printed?
@wembrallc9582
@wembrallc9582 4 жыл бұрын
NIce Vide Really Learned a lot
@Vlog-extreme
@Vlog-extreme 4 жыл бұрын
88 will be printed since we used global keyword in rohan function as it overrites the previous value of x
@Breath_taking
@Breath_taking 5 жыл бұрын
Ek Dham Clear
@piyushsipani4163
@piyushsipani4163 4 жыл бұрын
Great job bro
@vishalmankar4969
@vishalmankar4969 2 жыл бұрын
This course is helpful
@shloksahuit1038
@shloksahuit1038 3 жыл бұрын
moment when he says "Bajao tali" was op...........
@adityaskarnam266
@adityaskarnam266 3 жыл бұрын
10:57 The answer will be 88, because of the use of global keyword in the function, the value of x changed completely
@bhaveshvaishnav633
@bhaveshvaishnav633 2 жыл бұрын
Awesome
@jaydevroutjaydevrout6313
@jaydevroutjaydevrout6313 Жыл бұрын
You are god for me sir🙏🙏🙏🙏
@user-pd1bq6qv9b
@user-pd1bq6qv9b 5 жыл бұрын
😘😘😘😍😍😍😍😍siirrr ap bhut ziyai g
@vaibhavkashyap4727
@vaibhavkashyap4727 3 жыл бұрын
love yu brother..........
@aradhyamathur6409
@aradhyamathur6409 3 жыл бұрын
Thanks for teaching
@abhaymishra8774
@abhaymishra8774 5 жыл бұрын
Great sir
@programmerkiller7002
@programmerkiller7002 5 жыл бұрын
Nice video harry bhai
@ce13_piyushprajapati40
@ce13_piyushprajapati40 2 жыл бұрын
first one go to harry function in which x = 20 assigned to the x and in the harry function go to rohan function after out from the rohan function and our global variable x = 88 the print statment print the x = 20 because x = 20 is already in harry function so not preference for the global x = 88. and last print x = 88.
@sanjaisrao484
@sanjaisrao484 2 жыл бұрын
Thanks
@beingoutofthebox8906
@beingoutofthebox8906 3 жыл бұрын
Sarkar ka paisa example was the best example Thank u Harry bhaiya
@snehabodhgire6965
@snehabodhgire6965 3 жыл бұрын
Hi sir you teach very nice
@nolimits0620
@nolimits0620 3 жыл бұрын
while True: print("Thankyou Harry Bhai") never going to break the loop👍👍👍
@phames2101
@phames2101 3 жыл бұрын
Edit : while (True): print("Thankyou Harry Bhai"
@devilgaming5543
@devilgaming5543 3 жыл бұрын
I learned scripting and hacking tool making with this course
@vedified-spiritual7034
@vedified-spiritual7034 2 жыл бұрын
thnx for such amazing content
@AbhayKumar-oz4oh
@AbhayKumar-oz4oh 4 жыл бұрын
bajao taali , hahahahahaha so nice video Harry bhai
@mirzaebrahimbaig5633
@mirzaebrahimbaig5633 4 жыл бұрын
Behtreen sir love from Pakistan
@devdesai8562
@devdesai8562 3 жыл бұрын
you are definetly better than mosh great
@namitalabh4146
@namitalabh4146 3 жыл бұрын
It will definitely print 88 because we changed global variable from 89 to 88 by using : global x
@doggymama7553
@doggymama7553 3 жыл бұрын
Thanks bro☺
@surajmahendraramraj3870
@surajmahendraramraj3870 4 жыл бұрын
sir from inside that is from harry's function we will get x =20 as printed outcome as there was no change in the local variable and when from the rohan's function which changes the external predefined global variable(89) to 88 that is why we get output has: after calling rohan() 20 88
@ehtishamraza2623
@ehtishamraza2623 5 жыл бұрын
Meri Dua ha ap Hamesha Khush raho
@shadabsiddiqui28
@shadabsiddiqui28 4 жыл бұрын
ameen
@badalkumar-ck1hj
@badalkumar-ck1hj 3 жыл бұрын
Good brother
@harshitgupta8005
@harshitgupta8005 3 жыл бұрын
88 as the local variable (which is declared global ) in function harry will change the value of 'x = 89' to 'x = 88'
@avaniavijit7327
@avaniavijit7327 4 жыл бұрын
sir 88 output aayega because before the nested function value of x was 89 but in function rohan() We called global x and then we assigned the value of x to 88 So when we print x then we'd will get 88 as the output
Jumping off balcony pulls her tooth! 🫣🦷
01:00
Justin Flom
Рет қаралды 25 МЛН
WORLD'S SHORTEST WOMAN
00:58
Stokes Twins
Рет қаралды 104 МЛН
Double Stacked Pizza @Lionfield @ChefRush
00:33
albert_cancook
Рет қаралды 111 МЛН
50 YouTubers Fight For $1,000,000
41:27
MrBeast
Рет қаралды 210 МЛН
What is Scope in Python??
10:25
b001
Рет қаралды 47 М.
Middle Class FOOLED Once Again? | Budget 2024 | Dhruv Rathee
20:09
Dhruv Rathee
Рет қаралды 13 МЛН
local and Global Scope in Python | Python Tutorials for Beginners #lec78
14:34
Jenny's Lectures CS IT
Рет қаралды 38 М.
Jumping off balcony pulls her tooth! 🫣🦷
01:00
Justin Flom
Рет қаралды 25 МЛН