I am learning Python and R as part of a data-science track on Coursera and I was looking for some small problems to solve to really get into the mindset. As I looked I found Codingbat which was just what I was looking for.
I am publishing the solutions to the problems to:
- Get in the habit of using Git and Github
- Get in the habit of writing Markdown reports
- Get in the habit of sharing like I have benefitted from others doing
- To get a little better at rudimentary coding before I do my next trading bot
The site has Java and Python puzzles. Very small and quite fun.
Below are the links to the Python puzzles. The first ones are very easy and the last ones can be a bit challenging to come up with a short and precise solution for.
Thank you to Nick Parlante for making Codingbat.
-
Warmup-1
Simple warmup problems to get started, no loops -
Warmup-2
Medium warmup string/list problems with loops -
String-1
Basic python string problems -- no loops -
List-1
Basic python list problems -- no loops. -
Logic-1
Basic boolean logic puzzles -- if else and or not -
Logic-2
Medium boolean logic puzzles -- if else and or not -
String-2
Medium python string problems -- 1 loop. -
List-2
Medium python list problems -- 1 loop.