From 800e6d11524f739cde4fd33286d3c28fcaaa7cf8 Mon Sep 17 00:00:00 2001 From: nic00asia <73730054+nic00asia@users.noreply.github.com> Date: Sat, 31 Oct 2020 10:11:25 +0530 Subject: [PATCH] Create global var global variable --- global var | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 global var diff --git a/global var b/global var new file mode 100644 index 0000000..5992e47 --- /dev/null +++ b/global var @@ -0,0 +1,10 @@ +def f(): + global s + print(s) + s = "Look for Python Section" + print(s) + +# Global Scope +s = "Python is great!" +f() +print(s)