#Raspberry.py in IX # Python code to illustrate the Module class Raspberry: # First we create a constructor for this class # and add members to it, here models def __init__(self): self.models = ['Pi', 'Pico', 'Generic', 'Other'] #def end # A normal print function def outModels(self): print('These are the available models for Raspberry:') for model in self.models: print('\t%s ' % model) #for end #def end def show2(self,str1,int2): #arg1 of self doesn't count as an argument print('str1:',str1,'int2:',int2,) print('\t %s %d' % (str1 , int2) ) print('end of outRoutine') #def end #class end