It looks like you're new here. If you want to get involved, click one of these buttons!
#!/usr/bin/env python
import os, sys
class DoLs(object): #Here is our first class. They are generally LikeThis.
def __init__(self): #The initializer. We pass self
self.ls = os.system('ls')
print self.ls
class Dictionary(object): #All of this should look familiar
def __init__(self, key, value):
self.dict = {key:value}
def PrintDict(self):
print self.dict
class PrintStuff(object):
def __init__(self, argument):
self.arg = argument
def PrintArgument(self):
print \"The argument was: \", self.arg
argz = sys.argv[1]
printinstance = PrintStuff(argz) #Now to actually use the class
printinstance.PrintArgument()
printls = DoLs()
print(\"\n\n\")
initdict = Dictionary(argz, \"BoFz\")
initdict.PrintDict()