Fork me on GitHub

Codingbat.com exercises Part 2

by Elliott Hauser

16 Feb 2014

Note you have two extra days for this assignment. Get started early- you will likely need the extra time. Several of these problems are tricky! Remember to use your resources: your classmates, our community, the Internet, and Grant and I.

Codingbat Test-driven learning

Codingbat is like batting practice for coding. There are small little problems with several tests listed over on the side. As you write and run the program you'll see more and more of the tests turn green. This mimics the programming technique of Test Driven Development where the behavior of a program is specified at the beginning by writing tests.

Sign in to Codingbat.com using the free Mozilla Persona service so you can save and track your progress.

As you work through these problems, try some of the strategies in our reading on Debugging.

What to turn in

  • Complete Warmup 2, Lists 2, Strings 2, Logic 2
  • Choose three exercises that you found most interesting and write a single post about why you liked them, or why they were hard. Include the code you used to solve the problem.
  • Include one screenshot each of the sections once you've completed them. http://codingbat.com/python/Warmup-1 will have checkmarks when you complete its exercises. We want to see the checkmarks and your username when logged in.
  • Submit a well-formatted pull request with your working post and a link to your github.io site
Elliott Hauser is a PhD Student in information science at UNC Chapel Hill. He's hacking education as one of the cofounders of Trinket.io. Find Elliott Hauser on Twitter, Github, and on the web.
comments powered by Disqus