Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: calling an object variable in a dictionary
Post: RE: calling an object variable in a dictionary

thanks the idea of putting the dictionaries in the __int__ fuction worked.
sunhear General Coding Help 3 4,314 Dec-30-2016, 05:28 PM
    Thread: calling an object variable in a dictionary
Post: calling an object variable in a dictionary

my code in python 2.7 is: class char(object):     'chactors'       #Create instances of object      def __init__(self,name,d):         self.name = name         self.d = int(d)       def action(self,sk...
sunhear General Coding Help 3 4,314 Dec-27-2016, 09:50 PM
    Thread: calling a variable by name
Post: RE: calling a variable by name

i am trying to implement the changes in the code. I am new at programming objects and classes. The original question was how to right a function/method to add 2 variables together when only 1 is pas...
sunhear General Coding Help 7 6,608 Oct-16-2016, 07:46 PM
    Thread: calling a variable by name
Post: calling a variable by name

my code is:  class char(object):     'chactors'       def __init__(self,name,d,i):         self.name = name         self.d = int(d)          def namechar(self):         print self.name       def acti...
sunhear General Coding Help 7 6,608 Oct-14-2016, 08:49 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020