Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
codeperfectplus authored Apr 12, 2020
1 parent c7bd90c commit 0a43149
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions Python Basic/Global And Local Variable.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/usr/bin/env python
# coding: utf-8

# In[1]:


'''
Global variable can access anywhere inside or outside the function
'''
value = 10


# In[11]:


# Local vriable only Can Be Access InSide the function.
def sum(value,b=20):
value = 15
return value + b


# In[10]:


sum(value) # function Value with Local varible


# In[8]:


value # Again Global variable


# In[ ]:




0 comments on commit 0a43149

Please sign in to comment.