summaryrefslogtreecommitdiffstats
path: root/scratch.py
diff options
context:
space:
mode:
Diffstat (limited to 'scratch.py')
-rw-r--r--scratch.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/scratch.py b/scratch.py
index cb03373..296cb36 100644
--- a/scratch.py
+++ b/scratch.py
@@ -1,3 +1,12 @@
import sys
-print("hello, {0}".format('world!')) \ No newline at end of file
+class Baz:
+ def hello(self):
+ print(foo)
+
+if True:
+ foo = 'bar'
+
+print("hello, {0}".format('world!'))
+c = Baz()
+c.hello() \ No newline at end of file