Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I think the point was that
can_move
anddamage
ought to be read-only properties, hence why getters are used in JavaScript. The@property
decorator could have been used to that effect in Python, too bad it was not doneConcepts are correct, names are wrong. Nothing to be done about it though.
Closing.
Thanks a lot for the help, i was able to complete the one you suggested, but i'm still puzzled by this one !
sperm
is now namedchromosome
in the Python translation.This isn't a biology class, it's a simple code challenge for beginners.
...
I didn’t realize that it could be in Python 2. Now it’s clear, thank you!
The issue is still partially reproducible. Python version has starting code now but inconsistency with description is still there.
Everything is working correctly.
I agree.
head
in my head is, in a sense, a way to reference a previous node.Since this is a Singly Linked List, any particular
Node
has a reference to thenext
Node
only. So it'stail
is always traceable but not it'shead
.Given:
N1 -> N2 -> N3
For the entire list,
head
should always point toN1
andtail
should always point toN3
.But when we look at any one particular
Node
, we can accessdata
andnext
.Now,
head
would be theNode
itself andtail
would benext
.So in
push(head,data)
, it literally translates tonode.next = head
, which is really confusing.I may be wrong in thinking this way so any help would be appreciated.