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

  Рет қаралды 20,561

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

Пікірлер: 30
@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
@penakasammaiah4392
@penakasammaiah4392 10 ай бұрын
ma'am, your explanation is vey beautiful and clear as like you
@neha__singh54
@neha__singh54 12 күн бұрын
mam i am not getting how value of a after calling became 20
@muneebbolo
@muneebbolo 4 ай бұрын
Output: Jenny's Jenny's Lectures
@sumanthlucky9484
@sumanthlucky9484 Жыл бұрын
Jenney's Jenney's Lectures 😊
@mlynn5177
@mlynn5177 3 күн бұрын
Jenny's Jenny'sLectures
@b.harshavardhan93
@b.harshavardhan93 Жыл бұрын
Mam suggest from which chapter we need to learn as a begineer
@shankar1050
@shankar1050 Жыл бұрын
from where do you learn the things. please tell us the source.
@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
@vivekacharyavivekacharya6456
@vivekacharyavivekacharya6456 6 ай бұрын
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?
@29___saicharanreddy.k83
@29___saicharanreddy.k83 7 ай бұрын
for 1 jenny's lectures 2.jenny's
@shamalpanra
@shamalpanra Жыл бұрын
❤️❤️❤️🤟🤟🤟
@potrakandimanojkumar2693
@potrakandimanojkumar2693 Жыл бұрын
Mam❤
@pagadalaramakrishna4613
@pagadalaramakrishna4613 11 ай бұрын
jenny's jenny's Lectures
@ramya_koppisetti9092
@ramya_koppisetti9092 8 ай бұрын
Please explain last 5 min concept 20,20,30 with diagram mam.
@premkamble1520
@premkamble1520 Жыл бұрын
Mam please kya aap java language pada sakte he kya
@VishnuVardhan-dp7hu
@VishnuVardhan-dp7hu 11 ай бұрын
Mam,Can you please provide notes for each lecture as you provided in the beginning of the series . Thanks for the series .
@reasonalphysicsexplain9457
@reasonalphysicsexplain9457 3 ай бұрын
def display(): global name name = name + "lectures" Print(name) display() print(name) Output- Jenny's Jenny'slecture
@amitkmpbtup
@amitkmpbtup 11 ай бұрын
@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;😅
@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 10 ай бұрын
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 10 ай бұрын
@@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 10 ай бұрын
@@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....😁
@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 🙏😂
@azarudeena6467
@azarudeena6467 3 ай бұрын
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
Self and __init__() method in Python | Python Tutorials for Beginners #lec86
17:46
🤔Какой Орган самый длинный ? #shorts
00:42
孩子多的烦恼?#火影忍者 #家庭 #佐助
00:31
火影忍者一家
Рет қаралды 49 МЛН
local and Global Scope in Python | Python Tutorials for Beginners #lec78
14:34
Jenny's Lectures CS IT
Рет қаралды 35 М.
File Handling in Python | Python Tutorials for Beginners #lec95
45:32
Jenny's Lectures CS IT
Рет қаралды 79 М.
Global Variable in Python (Hindi)
12:27
Geeky Shows
Рет қаралды 31 М.
Abstraction in Python | Python OOP Concepts| Python Tutorials for Beginners #lec98
16:06
Modules in Python | Python Tutorials for Beginners #lec97
25:28
Jenny's Lectures CS IT
Рет қаралды 64 М.
What is Scope in Python??
10:25
b001
Рет қаралды 46 М.
6 Tips to write BETTER For Loops in Python
9:19
Patrick Loeber
Рет қаралды 246 М.
🤔Какой Орган самый длинный ? #shorts
00:42