Global keyword in Python | Modify a Global Variable | Python Tutorials for Beginners

  Рет қаралды 21,816

Jenny's Lectures CS IT

Jenny's Lectures CS IT

Жыл бұрын

In this lecture we will learn:
- What is Global keyword?
- Why do we use global keyword in Python?
- Global scope vs Global keyword
- How to modify a Global variable from within a function?
Best Python Tutorials for Beginners: • Python - Basic to Advance
*********************************************
Connect & Contact Me:
Jenny's Lectures HINDI: / @jennyslectureshindi
Facebook: / jennys-lectures-csit-n...
Quora: www.quora.com/profile/Jayanti...
Instagram: / jayantikhatrilamba
Twitter: / khatrijenny
*******************************************
More Playlists:
Programming in C Tutorials: • Programming in C
Printing Pattern in C: • Printing Pattern Progr...
C++ Tutorials for beginners: • Lec 1: How to Install ...
Placement Series: • Placements Series
Data Structures and Algorithms: https: • Data Structures and Al...
Design and Analysis of Algorithms(DAA): • Design and Analysis of...
Dynamic Programming: • Dynamic Programming
Operating Systems tutorials: // • Operating Systems
DBMS Tutorials: • DBMS (Database Managem...
#global #keywords #python #pythonforbeginners #jennyslectures

Пікірлер: 32
@aishwaryagandhi1878
@aishwaryagandhi1878 Жыл бұрын
Ma'am thankyou for the wonderful lecture : ) *input* name="Jenny's" def display(): global name name=name+" Lectures" print(name) display() print(name) *output* Jenny's Jenny's Lectures
@muneebbolo
@muneebbolo 4 ай бұрын
Output: Jenny's Jenny's Lectures
@penakasammaiah4392
@penakasammaiah4392 11 ай бұрын
ma'am, your explanation is vey beautiful and clear as like you
@mlynn5177
@mlynn5177 25 күн бұрын
Jenny's Jenny'sLectures
@sumanthlucky9484
@sumanthlucky9484 Жыл бұрын
Jenney's Jenney's Lectures 😊
@b.harshavardhan93
@b.harshavardhan93 Жыл бұрын
Mam suggest from which chapter we need to learn as a begineer
@potrakandimanojkumar2693
@potrakandimanojkumar2693 Жыл бұрын
Mam❤
@29___saicharanreddy.k83
@29___saicharanreddy.k83 8 ай бұрын
for 1 jenny's lectures 2.jenny's
@neha__singh54
@neha__singh54 Ай бұрын
mam i am not getting how value of a after calling became 20
@shamalpanra
@shamalpanra Жыл бұрын
❤️❤️❤️🤟🤟🤟
@pagadalaramakrishna4613
@pagadalaramakrishna4613 Жыл бұрын
jenny's jenny's Lectures
@shankar1050
@shankar1050 Жыл бұрын
from where do you learn the things. please tell us the source.
@vivekacharyavivekacharya6456
@vivekacharyavivekacharya6456 7 ай бұрын
Mam,we can modify that global value. Without a global keyword,,but we hv to modify directly in the print function. Well ,is this also fine know mam?
@manisha_ff6717
@manisha_ff6717 9 ай бұрын
name="jenny" def display(): global name name=name+" is my soul" print(name) display() print(name) o/P : jenny is my soul jenny is my soul
@ramya_koppisetti9092
@ramya_koppisetti9092 9 ай бұрын
Please explain last 5 min concept 20,20,30 with diagram mam.
@solamankj1203
@solamankj1203 17 күн бұрын
first print("jenny") second print("jennyLecture") we updated global variable inside the funtion display()
@premkamble1520
@premkamble1520 Жыл бұрын
Mam please kya aap java language pada sakte he kya
@VishnuVardhan-dp7hu
@VishnuVardhan-dp7hu Жыл бұрын
Mam,Can you please provide notes for each lecture as you provided in the beginning of the series . Thanks for the series .
@emuislam5751
@emuislam5751 Жыл бұрын
You are damn🥺
@tengerbmw3789
@tengerbmw3789 Жыл бұрын
Kali me ma maal,safed me bawal; Aapki thodi si muskuraht kar deti hai mere Dil ka bura hal;😅
@amitkmpbtup
@amitkmpbtup 11 ай бұрын
@reasonalphysicsexplain9457
@reasonalphysicsexplain9457 3 ай бұрын
def display(): global name name = name + "lectures" Print(name) display() print(name) Output- Jenny's Jenny'slecture
@user-rx1ng9gb5t
@user-rx1ng9gb5t Жыл бұрын
U looks 😍
@preetamsthings4189
@preetamsthings4189 Жыл бұрын
The way she stares directly on camera It takes our attention away. Please don't do that 🙏😂
@i_UCH1HA
@i_UCH1HA Жыл бұрын
Python, anaconda whatever you teach I'll learn them happily although i have no use of them in my profession
@NMEDarshanKS
@NMEDarshanKS 11 ай бұрын
So you are wasting your time in your life and you came to see only the ma'am right? What man🤦🏻...think and use your time to be better
@i_UCH1HA
@i_UCH1HA 11 ай бұрын
@@NMEDarshanKS 1st of all stop wasting your time replying to certain things which ur brain is unable to comprehend 2nd go and use your time to work on understanding jokes or sarcasm rather than giving advice to others..
@NMEDarshanKS
@NMEDarshanKS 11 ай бұрын
@@i_UCH1HAThank you for giving time to type this message. 1st and 2nd of all i am not wasting my time i just realised you to spend time to type better than is message and i am always free to read only your message....😁
@bhuvnesh2815
@bhuvnesh2815 21 күн бұрын
error
@azarudeena6467
@azarudeena6467 4 ай бұрын
name = "jeni" def display(): global name name = name + "lecture" # print("inside:",name) print(name) display() print("outside:",name) output : jeni jenilecture
@vaibhavpatharkar6794
@vaibhavpatharkar6794 Жыл бұрын
Jenny madam pl pl pl pl pp start SQL. Hath jodkar bimti hai apase
local and Global Scope in Python | Python Tutorials for Beginners #lec78
14:34
Jenny's Lectures CS IT
Рет қаралды 38 М.
Double Stacked Pizza @Lionfield @ChefRush
00:33
albert_cancook
Рет қаралды 111 МЛН
Nastya and SeanDoesMagic
00:16
Nastya
Рет қаралды 38 МЛН
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 35 МЛН
Please Master These 10 Python Functions…
22:17
Tech With Tim
Рет қаралды 108 М.
Self and __init__() method in Python | Python Tutorials for Beginners #lec86
17:46
*args and **kwargs in Python | Python Tutorials for Beginners #lec62
22:03
Jenny's Lectures CS IT
Рет қаралды 63 М.
Modules in Python | Python Tutorials for Beginners #lec97
25:28
Jenny's Lectures CS IT
Рет қаралды 66 М.
5 Useful Dunder Methods In Python
16:10
Indently
Рет қаралды 56 М.
Sets in Python | Python Tutorials for Beginners #lec41 Part1
16:00
Jenny's Lectures CS IT
Рет қаралды 67 М.
ALL 11 Dictionary Methods In Python EXPLAINED
9:26
Indently
Рет қаралды 54 М.
Double Stacked Pizza @Lionfield @ChefRush
00:33
albert_cancook
Рет қаралды 111 МЛН