From the course: Programming Foundations: Data Structures
Unlock this course with a free trial
Join today to access over 25,600 courses taught by industry experts.
How to use CoderPad - Python Tutorial
From the course: Programming Foundations: Data Structures
How to use CoderPad
- Throughout this course, we'll be using CoderPad to test our knowledge of data structures. These are small code snippets focused on very specific functionality. CoderPad challenges have four main areas, instructions, a console for output, a code editor for your answer, and another code editor where you can see how your code is used. You can use these drag handles to allocate space as you'd like. Now let's complete this coding challenge. There are comments in the starting code showing you where to put your solution. When you click the Test my code button, you'll see a message indicating whether your code returned the correct result. Let's change the code to something that fails. In the output, we get a failure message. Now if you're stuck, there are ways you can ask for help. The show_expected_result and show_hints variables determine whether you can see the expected results and any hints. We can change them to true to control the output. Now we can see the expected result is 19 and a…