Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

i still dont understand this

Set Warrior's weapon to the string 'sword'.

http://teamtreehouse.com/library/warriors-come-out-and-playay

Lyric,

The answers to those are definitely in the videos. If you watched the videos on creating a class, extending a class, and using pass, you'll find this one easy.

3 Answers

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

Lyric Abbott looking at your badges, you don't seem to have been going through all of the Python courses. You should start at the beginning. Trying to get badges and points by Googling answers and guessing won't work well in my courses.

Challenge Task 2 of 4

Set Warrior's weapon to the string 'sword'.

from character import Character

class Warrior(Character):

weapon = "sword"

David Bouchare
David Bouchare
9,224 Points

Could you tell us a bit more about where exactly you are stuck?

Hint: don't forget the import:

from ... import ...

I dont know how to start of the function