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

no edit summary
imported>Adamf
(Created page with "===Using CodingBat=== CodingBat is a little different from using python at the command line or in a text editor like we've been doing. When you use CodingBat you type your co...")
 
imported>Jesstess
No edit summary
Line 1:
We are going to use a website called CodingBat.com to practice Python throughout this workshop.
 
Before you do the CodingBat questions for the Friday tutorial, let's walk through how to use CodingBat.com with an example.
 
===Using CodingBat===
 
CodingBat is a little different from using pythonPython at the command line or in a text editor like we've been doing. When you use CodingBat, you type your code into a web page and click 'Go' when you want that code to run. You'll still need to make sure you indent all your code to the same level.
 
The way CodingBat works is that your write a function (the first line of the function is written for you), and CodingBat will run your function a few times, each time with a different input. CodingBat will look at the output of your function and compare it to the correct answer. If all the outputs are correct for all the inputs, you're done!
Anonymous user