python: Skeleton files should be included in all problems to make it easier
I’m on the Python section, and I’ve found that only a few challenges include a skeleton file. This is helpful, since you can then start coding without the delay of creating your own file. Example: the Bob challenge comes with bob.py:
#
# Skeleton file for the Python "Bob" exercise.
#
def hey(what):
return
It’d be great if a skeleton file like this was included in all of the challenges, to make things just a little bit easier for everyone.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 21 (16 by maintainers)
Commits related to this issue
- refactor exercise word-search * rewrite tests so that users have more freedom of implementation * update example-implementation to fit test-interface * reduce skeleton to minimal as discussed in #272 — committed to pheanex/xpython by pheanex 7 years ago
- refactor exercise word-search * rewrite tests so that users have more freedom of implementation * update example-implementation to fit test-interface * reduce skeleton to minimal as discussed in #272 — committed to pheanex/xpython by pheanex 7 years ago
- refactor exercise word-search * rewrite tests so that users have more freedom of implementation * update example-implementation to fit test-interface * reduce skeleton to minimal as discussed in #272 — committed to pheanex/xpython by pheanex 7 years ago
- Add skeleton files for exercises (closes #272) — committed to pheanex/xpython by pheanex 7 years ago
- Add skeleton files for exercises (closes #272) — committed to pheanex/xpython by pheanex 7 years ago
For what it’s worth, I learned about how python file/function names can be imported from Exercism because the default file and functions weren’t supplied. Hello World simply uses
import hello_worldand then explicitly callshello_world.hello()from there. But the next exercise (leap year) usesfrom year import is_leap_yearand it took me a bit of investigating to work out how it all fits together. Sure, it’s probably less valuable after the first two or three, but needing to create new files did teach me something at first.