•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Python section within the Software Development category of DaniWeb, a massive community of 391,682 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,205 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Python advertiser:
Views: 167 | Replies: 1
![]() |
| |
•
•
Join Date: Mar 2007
Posts: 37
Reputation:
Rep Power: 2
Solved Threads: 10
obj.compDmg(), being a method of fighters[0], will automatically be passed the instance object. In effect, the method receives three arguments in your case. Try this:
python Syntax (Toggle Plain Text)
cell.health -= fighters[0].compDmg(cell)
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Python Marketplace
Similar Threads
- memory management in wndows 2000 (Windows NT / 2000 / XP / 2003)
- Little bit of Homework Help would be greatly appreciated (C++)
Other Threads in the Python Forum
- Previous Thread: Lists & Passwords
- Next Thread: listing of all directory and file


Hybrid Mode