class junk: def __init__ (self, weight, value, qnt_max, qnt, name) self.weight = weight self.value = value self.qnt_max = qnt_max self.qnt = qnt self.name = name #This is an item class for handeling junk items that are only really used for selling class food: def __init__ (self, hng, hyd, qnt_max, qnt, value, name) self.hng = hng self.hyd = hyd self.qnt_max = qnt_max self.value - value self.name = name #This item class is for handeling food items class melee_wep: def __init__ (self, dur, weight, value, ap, cut, bash, element, element_dmg, name) self.dur = dur self.weight = weight self.value = value self.ap = ap self.cut = cut self.bash = bash self.element = element self.element_dmg = element_dmg self.name = name #This is
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question