The idea behind this is to improve your own programming skills with Python. I think it would be fun to do because everyone will benefit from these challenges, including myself.
I will post a challenge every week, for example on Mondays, increasing in difficulty. I will post a solution once people posted 5 unique solutions (if possible) for each challenge in the comments or new blog post. I will also give out advice whenever I can.
Example challenge: Finding the number of "tee" in the word Steem with the following input:
Input: tee, teee, tee, steem, Steem, Steeem, sTeem, StEm, blahtee
Output: 4
If people like this idea. I will give a more detailed challenge.
I think it is a brilliant idea @tech.ninja, you have yourself a new follower.
Awesome! :D
Are you a programmer?
I'd consider getting involved if all your tutorials involved creating apps for Steemit/Utopian etc. I'm really enjoying development and I'd be interested in learning more Python.
Congratulations @tech.ninja! You have completed some achievement on Steemit and have been rewarded with new badge(s) :
Award for the number of comments
Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here
If you no longer want to receive notifications, reply to this comment with the word
STOP
I'm sorry, but can you explain how that particular input (list of words you provided in your post) maps to output (
4
)?If those were just the examples of the format in which you'll give your challenges, I think it'd be much better if you explained the challenge as clearly as possible, and gave working example.
Here, for example, the number of "tee" in the word Steem may mean "how many words containing tee there are in the input", or "how many words that mean Steem (i.e. with different case) that also contain tee there are in the input". In other word, it's ambiguous - or it's just me having issues with trying to understand it.
If I were to expand on this challenge, I would be more specific, at least in the early challenges. That's one of the programmer's enemies. What does the person mean and what is the problem they're trying to solve? Often times when people ask programmers to make a certain program, they will only have a broad description of what they want. This is where software requirements come into play and you will have formal meetings with the clients. You will have to gather all the information required to make said app.
The input could be a string, array, hashmap, or even trees. The visual representation does not mean anything other than being human readable.
So what you asked was a great question that some programmer may ask. A good start :)
In this case, I mean how many times you see the word tee IN the main word steem given this input. The input is a set of words separated by a comma. You would parse out each word in the list and try to find a subword of tee. Keep doing this as you count the occurrences until they are no more words to parse out.
You will see its 4, but looking at the description I did say the word "steem" specifically and I counted "Steeem" which isn't the word "steem" now is it? So, the correct answer is 3. But as the description is broad and doesn't mention anything about the spelling. I would think that 3 or 4 can be the correct answers. So confusing!
So, in my challenges I will be very specfic in what the actual problem is. As well as correcting or clarify my challenge if needed.
Thanks for asking. This is why I want to do some challenges, to make sure I'm concise and as well as teaching people with mistakes they find in my wording or logic. Everyone wins. :D