Created
February 3, 2019 14:24
-
-
Save Robofied/194e10ab942cdf0ba0fdd44a20fa2674 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Creating a global variable | |
a = "Hello! Welcome to python tutorials." | |
def func(): | |
## It will automatically takes the value of global variable as we didn't define any other local variable "a" inside fubction. | |
print(a) | |
## Calling the function toc check what value of "a" will it print. | |
func() | |
#[Output]: | |
Hello! Welcome to python tutorials. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment