#36 Python Tutorial for Beginners | Global Keyword in Python | Global vs Local Variable

#36 Python Tutorial for Beginners | Global Keyword in Python | Global vs Local Variable

Telusko

5 лет назад

504,956 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@harshamannem5006
@harshamannem5006 - 02.09.2023 18:53

Great videos. Learning lots. However the topic of global vs local was challenging to follow especially the globals().

Ответить
@christinalai3485
@christinalai3485 - 28.07.2023 12:30

nice video

Ответить
@kodidatascientist6978
@kodidatascientist6978 - 03.07.2023 11:47

Offo man. You are nice guy and concept are cleared in 10 min. god bless you man. I am big fan of your way of teaching.

Ответить
@vaibhavsoni4680
@vaibhavsoni4680 - 30.06.2023 12:53

This 10 min video >>>>>>> 2-3 hours of college lecture

Thank you so much sir ❤

Ответить
@gustavobarbosa906
@gustavobarbosa906 - 19.04.2023 22:43

i’ve seen a quite a few videos on variable scope, not one of them mentioned globals(). Thank you for one more useful lesson!

Ответить
@Kotesh-n
@Kotesh-n - 18.04.2023 18:43

I think the global variables are handled in a matured fashion in C, C++ and Java. I feel Python left a room for confusion.
Or maybe I am costumed to those languages.

Ответить
@101vaibhavmojidra4
@101vaibhavmojidra4 - 27.03.2023 19:32

Sir global variable is getting printed before local variable in my code.

Ответить
@101vaibhavmojidra4
@101vaibhavmojidra4 - 26.03.2023 21:36

Was a bit heavy but understood. Can we get an explanation in depth on this?

Ответить
@AswithaV-sl5zp
@AswithaV-sl5zp - 25.03.2023 19:38

thank you so much sir !!!!!

Ответить
@TechvinayakIntelugu
@TechvinayakIntelugu - 20.03.2023 16:43

thanks for the video

Ответить
@user-zs4bd8bn3t
@user-zs4bd8bn3t - 18.03.2023 13:41

what does that

something() do?

Ответить
@proxxy3933
@proxxy3933 - 06.03.2023 21:09

this playlist is heaven thanku so much sir.

Ответить
@parshuram3272
@parshuram3272 - 23.02.2023 16:00

very straight point

Ответить
@codeone6423
@codeone6423 - 20.02.2023 16:29

wow you explaine it to me like i am 2 years ild (^.^) thank you

Ответить
@emmawu1693
@emmawu1693 - 03.02.2023 20:58

thank you so much🙏

Ответить
@kpsanjna
@kpsanjna - 29.01.2023 19:07

Navin Sir...U r Ultimate...the concepts are crystal clear within seconds...Every sec is worth watchin .... U r Truly a gem🔷..Thank u so much for the series..

Ответить
@Revusic
@Revusic - 14.01.2023 22:19

Please use dark mode next time. Please its a humble request

Ответить
@ricosun
@ricosun - 11.01.2023 22:29

very good

Ответить
@acrobite26
@acrobite26 - 08.01.2023 17:56

Can we access a local variable of one function in another function?

Ответить
@nakulmehta6309
@nakulmehta6309 - 22.12.2022 15:50

You solved a great problem for me, thanku you so much

Ответить
@adolfhitler2155
@adolfhitler2155 - 18.12.2022 23:58

you're so cool i love your videos man!

Ответить
@Nalanarud
@Nalanarud - 04.12.2022 10:32

Awesome man, I was stuck for 1 hour on that, tyvm

Ответить
@Alberta_Farmer
@Alberta_Farmer - 09.11.2022 14:21

I want a diploma that says Telusko Academy lol))

Ответить
@webjacked5113
@webjacked5113 - 30.10.2022 17:08

thank you sir

Ответить
@Badinky
@Badinky - 30.09.2022 17:57

Hi there! Thanks for the help. The issue that I was having was that I was attempting to use the global keyword inside a "While" statement, rather than defining a function and putting it there.

I was trying to modify the user's balance based on if they withdraw, and when they made another transaction, it showed the original balance. I was able to make a function where I stated that the balance is global, and right after that set the new balance. Inserting this function into the code works.

Ответить
@savagekawaii6521
@savagekawaii6521 - 18.08.2022 10:53

What about strings?

Ответить
@vakhariyajay2224
@vakhariyajay2224 - 30.07.2022 22:09

Thank you very much. You are a genius.

Ответить
@paia6447
@paia6447 - 25.07.2022 09:15

I think global keyword in python is similar to this keyword in java

Ответить
@karamjitsinghsehdev3451
@karamjitsinghsehdev3451 - 27.06.2022 20:58

Nicely Explained. Can global be declared outside a function.

Ответить
@shaimaaabohaimed344
@shaimaaabohaimed344 - 11.06.2022 15:19

YOU ARE AMAZING

Ответить
@avinashmaurya7227
@avinashmaurya7227 - 09.05.2022 15:07

This helps me a lot , Thankyou🌻

Ответить
@jeswintharyan7594
@jeswintharyan7594 - 09.04.2022 19:45

is this logic applicable to lists (which are mutable), also ?

Ответить
@gokilagoki3656
@gokilagoki3656 - 05.04.2022 13:39

Everything is okay sir but please go slow . because your speed is too fast. but content is good easy to understand .also simple English .thank you sir I subscribed also I sended to all of my friends

Ответить
@Imran20091990
@Imran20091990 - 17.03.2022 12:13

Can we pass local variable value to Global variable Value.. global variable value initially pointing to None and I wants to assign local value to Global..

Ответить
@itcodingman
@itcodingman - 19.01.2022 12:26

讲得非常好

Ответить
@40_jaishreerana45
@40_jaishreerana45 - 13.01.2022 07:23

Sir you are an outstanding teacher
Hard to find people like you who provide help to the students , that too free of cost
Very appreciable
Thanks once again

Ответить
@tridoan8140
@tridoan8140 - 01.01.2022 20:44

Very helpful, thank you so much

Ответить
@prithwishdey7559
@prithwishdey7559 - 23.12.2021 19:15

I don't know how this man is able to explain the topics so beautifully

Ответить
@PassionateSaksham
@PassionateSaksham - 16.12.2021 09:47

These 8 minutes tought me 40 minutes of lecture.. Hats Off To You Sir!

Ответить
@harshitsingh1362
@harshitsingh1362 - 06.12.2021 19:21

Sir, we have taken a before x = globals()['a'], it is not working when I specified a after writing x = globals()['a']. Please help me solve this out.

Ответить
@avishkafernando1854
@avishkafernando1854 - 28.11.2021 15:39

all in one

Ответить
@mohitsingh2242
@mohitsingh2242 - 25.11.2021 22:01

Thank you for the great explanation.🙏😀

Ответить
@pranavyeleti3499
@pranavyeleti3499 - 23.11.2021 20:09

I love ur explanation
Sum=0
def add():
Sum=sum+1
print(sum)
add()
What will be sum value in add function does it take global varibale
add()

Ответить
@muarckbucks6368
@muarckbucks6368 - 11.11.2021 00:04

ty so much

Ответить
@valentinerethinam5556
@valentinerethinam5556 - 27.10.2021 08:43

Explained wonderfully!!!
After watching your video once, When I tried to write code for this , I got some doubts and then I watched your video again , Where you have neatly explained / answered all my doubts already. Thank u so much for your videos !!

Ответить
@ananthakrishnan3566
@ananthakrishnan3566 - 21.10.2021 07:53

why we can't assign boolean as a global variable?

Ответить
@anzkii2661
@anzkii2661 - 20.10.2021 21:32

how much more indian can u get

Ответить
@tymothylim6550
@tymothylim6550 - 15.10.2021 11:29

Thanks a lot for the video! Excellent explanation:)

Ответить
@muhammadhashir7949
@muhammadhashir7949 - 13.10.2021 12:59

Thanks for getting me understanding this hectic

Ответить