Jump to content

Boston Python Workshop 6/Friday/CodingBat Using Codingbat: Difference between revisions

imported>Jesstess
imported>Jesstess
Line 9:
For each CodingBat question, you will write a function. CodingBat will run your function with a few different inputs, and will compare the output of the function you wrote to what it knows is the correct answer. If all the outputs are correct for all the inputs, you've written the function correctly!
 
We like CodingBat because it gives you immediate feedback on how close your function is to being correct.
 
Let's walk through an example. In this case I'll use [http://codingbat.com/prob/p216579 the sumTwoNumbers] exercise.
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.