Initial commit
This commit is contained in:
15
Solutions/9_1/simplemod.py
Normal file
15
Solutions/9_1/simplemod.py
Normal file
@@ -0,0 +1,15 @@
|
||||
# simplemod.py
|
||||
|
||||
x = 42 # A global variable
|
||||
|
||||
# A simple function
|
||||
def foo():
|
||||
print("x is %s" % x)
|
||||
|
||||
# A simple class
|
||||
class Spam:
|
||||
def yow(self):
|
||||
print('Yow!')
|
||||
|
||||
# A scripting statement
|
||||
print("Loaded simplemod")
|
||||
Reference in New Issue
Block a user