Selection


In the first week, you were introduced to state. Last week, you were introduced to iteration, one of the more difficult programming constructs to grasp. This week, we discussed another programming construct: selection. In this week's lab, we will bring together everything that you have learnt so far to create a program capable of solving sudoku puzzles.

If you can develop a solution without assistance, attempt this now. If not, navigate through the lab and develop your code according to the instructions.


Image of a partially-complete sudoku puzzle

Open Code Editor






Click here to go to the COMP16321 Blackboard page


Click anywhere to close this video

Contents




Green = Current Page

Click anywhere to close this overlay

Topics Covered in this Lab



1. 2D Arrays

2. len() function

3. While/For loops

4. sqrt() function

5. Importing methods

6. Lambda functions

7. Array methods (.append() etc.)



Click anywhere to close this overlay

Lab Key



Notes – #FF6F61

Videos – #34568B

Code Examples – #009B77

Downloads - #C3447A

Internal Link (University Resources) – #955251

External Link (Non-University Resources)– #EFC050

Other - #660099



Click anywhere to close this overlay