7 kyu
Thinkful - String Drills: Jedi name
1,976Grae-Drake
Loading description...
Fundamentals
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
Python new test framework should be used with 3.8 enabled
Done.
I was trying to select digit from the string like an index function. Program isn't having it... Here is my try:
def JediName(first,last) return "Greetings, Master {}{}".format(last[:3], first[:2])
This comment has been hidden.
Some translations here:
Please review and accept if ok.
What a madlad, translated it to 4 languages at once ;)
The expected values of 2nd and 3rd example test cases are wrong. (have
first
andlast
flipped)Yup, mixed those up. Went back and fixed the real tests but not the examples. Do you know if there's a way to run those example tests? Happened a couple times to me now where I fixed the real tests but missed updating the examples :/
Confirmed the fix :) I'm not sure. How about trying it out yourself after publishing? Click "TRAIN AGAIN", paste reference solution and "RUN EXAMPLES"?
@kazk: Good advice :) I can be wrong but as I remember the example tests were also tested against the reference solution when one pressed
(Re-)Publish
. This isn't the case anymore. I'll raise a github issue to "restore" this behaviour as this could prevent similar issues and oversights.Regards,
suic
@suic, testing on every
(re)publish
and only allowing valid katas to go public will be the best, but any warning/status indication should help a lot :) It seems too easy to overlook even for careful authors. Thanks for the github issue