# ND 6-8: 7.PSA.1

## CodeHS Lessons

Modify and test an algorithm to solve a problem.

 Standard 2.1 Intro to Python with Tracy the Turtle 2.2 Tracy's Grid World 2.3 Turning Tracy 2.4 For Loops 2.5 Turning Tracy Using Angles 2.8 Functions 2.9 Artistic Effects 2.10 Top Down Design 2.11 Variables 2.12 User Input 2.13 Parameters 2.14 Using i in For Loops 2.15 Extended Loop Control 2.16 If Statements 2.17 If/ Else Statements 2.18 While Loops 2.19 Putting Together Control Structures 4.3 Comparison Operators 4.4 Logical Operators 5.1 While Loops 5.2 For Loops 5.3 Break and Continue 5.4 Nested Control Structures 6.1 Functions 6.2 Functions and Parameters 6.3 Namespaces in Functions 6.4 Functions and Return Values 6.5 Exceptions 7.1 Indexing 7.2 Slicing 7.4 Strings and For Loops 7.5 The in Keyword 7.6 String Methods 8.1 Tuples 8.2 Lists 8.3 For Loops and Lists 8.4 List Methods 9.1 2d Lists 9.2 List Comprehensions 9.4 Dictionaries
 Standard 33.1 Indexing 33.2 Slicing 33.4 Strings and For Loops 33.5 The in Keyword 33.6 String Methods
 Standard 1.14 More Karel Examples and Testing 13.1 Intro to Python with Tracy the Turtle 13.2 Tracy's Grid World 13.3 Turning Tracy 13.4 For Loops 13.5 Turning Tracy Using Angles 13.8 Functions 13.9 Artistic Effects 13.10 Top Down Design 13.11 Variables 13.12 User Input 13.13 Parameters 13.14 Using i in For Loops 13.15 Extended Loop Control 13.16 If Statements 13.17 If/ Else Statements 13.18 While Loops 13.19 Putting Together Control Structures
 Standard 9.17 Functions and Return Values 2 9.14 Functions and Parameters 1 9.15 Functions and Parameters 2 9.16 Functions and Return Values 1
 Standard 4.3 Looping 4.4 Branching
 Standard 1.1 Intro to Python with Tracy the Turtle 1.2 Tracy's Grid World 2.1 Turning Tracy 2.2 For Loops 2.3 Turning Tracy Using Angles 3.3 Functions 3.4 Artistic Effects 3.5 Top Down Design 4.1 Variables 4.2 User Input 4.3 Parameters 4.4 Using i in For Loops 4.5 Extended Loop Control 5.1 If Statements 5.2 If/ Else Statements 5.3 While Loops 6.1 Putting Together Control Structures
 Standard 1.1 IntroducciÃ³n a Python con Tracy la Tortuga 1.2 El mundo de la cuadrÃ­cula de Tracy 2.1 Girando a Tracy 2.2 For Loops 2.3 Girando a Tracy usando Ã¡ngulos 3.3 Funciones 3.4 Efectos ArtÃ­sticos 3.5 DiseÃ±o de Arriba Hacia Abajo 4.1 Variables 4.2 Entrada del Usuario 4.3 ParÃ¡metros 4.4 Usando i en For Loops 4.5 Control de Loops Extendido 5.1 Declaraciones if 5.2 Declaraciones if/else 5.3 While Loops 6.1 Armando Estructuras de Control
 Standard 2.14 More Karel Examples and Testing 3.1 Intro to Python with Tracy the Turtle 3.2 Tracy's Grid World 3.3 Turning Tracy 3.4 For Loops 3.5 Turning Tracy Using Angles 3.8 Functions 3.9 Artistic Effects 3.10 Top Down Design 3.11 Variables 3.12 User Input 3.13 Parameters 3.14 Using i in For Loops 3.15 Extended Loop Control 3.16 If Statements 3.17 If/ Else Statements 3.18 While Loops 3.19 Putting Together Control Structures
 Standard 2.14 More Karel Examples and Testing 6.1 Intro to Python with Tracy the Turtle 6.2 Tracy's Grid World 6.3 Turning Tracy 6.4 For Loops 6.5 Turning Tracy Using Angles 6.8 Functions 6.9 Artistic Effects 6.10 Top Down Design 6.11 Variables 6.12 User Input 6.13 Parameters 6.14 Using i in For Loops 6.15 Extended Loop Control 6.16 If Statements 6.17 If/ Else Statements 6.18 While Loops 6.19 Putting Together Control Structures
 Standard 7.8 Comparison Operators 7.9 Logical Operators 7.11 For Loops 7.12 Break and Continue 7.14 Functions 7.16 Namespaces in Functions 7.15 Functions and Parameters 7.17 Functions and Return Values 7.18 Exceptions
 Standard 6.1 Tuples 6.2 Lists 6.3 For Loops and Lists 6.4 List Methods 6.5 2d Lists 6.6 Dictionaries
 Standard 1.14 More Karel Examples and Testing
 Standard 1.1 Intro to Python with Tracy the Turtle 1.2 Tracy's Grid World 1.3 Turning Tracy 1.4 For Loops 1.5 Turning Tracy Using Angles 1.8 Functions 1.9 Artistic Effects 1.10 Top Down Design 1.11 Variables 1.12 User Input 1.13 Parameters 1.14 Using i in For Loops 1.15 Extended Loop Control 1.16 If Statements 1.17 If/ Else Statements 1.18 While Loops 1.19 Putting Together Control Structures 3.3 Comments & Pseudocode 4.3 Comparison Operators 4.4 Logical Operators 5.1 While Loops 5.2 For Loops 5.3 Break and Continue 5.4 Nested Control Structures 6.1 Functions 6.2 Functions and Parameters 6.3 Namespaces in Functions 6.4 Functions and Return Values 6.5 Exceptions 8.1 Indexing 8.2 Slicing 8.4 Strings and For Loops 8.5 The in Keyword 8.6 String Methods 9.1 Tuples 9.2 Lists 9.3 For Loops and Lists 9.4 List Methods 10.1 2d Lists 10.2 List Comprehensions 10.4 Dictionaries 12.1 Arduino Challenges
 Standard 5.3 Comments & Pseudocode 8.1 Functions and Parameters 1 8.2 Functions and Parameters 2 8.3 Functions and Parameters 3 8.4 Functions and Return Values 1 8.5 Functions and Return Values 2 14.1 Arduino Challenges
 Standard 1.1 Intro to Python with Tracy the Turtle 1.2 Tracy's Grid World 2.1 Turning Tracy 2.2 For Loops 2.3 Turning Tracy Using Angles 3.3 Functions 3.4 Artistic Effects 3.5 Top Down Design 4.1 Variables 4.2 User Input 4.3 Parameters 4.4 Using i in For Loops 4.5 Extended Loop Control 5.3 Comments & Pseudocode 6.1 If Statements 6.2 If/ Else Statements 6.3 While Loops 8.1 Putting Together Control Structures 9.1 micro:bit Challenges
 Standard 2.3 Comments & Pseudocode 10.1 micro:bit Challenges
 Standard 1.3 Comments & Pseudocode 3.1 micro:bit Challenges
 Standard 1.3 Comments & Pseudocode 3.1 Arduino Challenges
 Standard 9.1 Functions and Parameters 1 9.2 Functions and Parameters 2 9.3 Functions and Parameters 3 9.4 Functions and Return Values 1 9.5 Functions and Return Values 2
 Standard 1.1 Intro to Python with Tracy the Turtle 1.2 Tracy's Grid World 1.3 Turning Tracy 1.4 For Loops 1.5 Turning Tracy Using Angles 1.8 Functions 1.9 Artistic Effects 1.10 Top Down Design 1.11 Variables 1.12 User Input 1.13 Parameters 1.14 Using i in For Loops 1.15 Extended Loop Control 1.16 If Statements 1.17 If/ Else Statements 1.18 While Loops 1.19 Putting Together Control Structures 3.3 Comments & Pseudocode 11.14 More Karel Examples and Testing 15.1 micro:bit Challenges
 Standard 7.1 Functions and Parameters 1 7.2 Functions and Parameters 2 7.3 Functions and Parameters 3 7.4 Functions and Return Values 1 7.5 Functions and Return Values 2
 Standard 9.1 Functions and Parameters 1 9.2 Functions and Parameters 2 9.3 Functions and Parameters 3 9.4 Functions and Return Values 1 9.5 Functions and Return Values 2
 Standard 10.1 Functions and Parameters 1 10.2 Functions and Parameters 2 10.3 Functions and Parameters 3 10.4 Functions and Return Values 1 10.5 Functions and Return Values 2
 Standard 2.1 Intro to Python with Tracy the Turtle 2.2 Tracy's Grid World 2.3 Turning Tracy 2.4 For Loops 2.5 Turning Tracy Using Angles 2.8 Functions 2.9 Artistic Effects 2.10 Top Down Design 2.12 Variables 2.13 User Input 2.14 Parameters 2.16 Using i in For Loops 2.17 Extended Loop Control 2.18 If Statements 2.19 If/ Else Statements 2.20 While Loops 2.22 Putting Together Control Structures 6.3 Comparison Operators 6.4 Logical Operators 7.1 While Loops 7.2 For Loops 7.3 Break and Continue 7.4 Nested Control Structures 8.1 Functions 8.2 Functions and Parameters 8.3 Namespaces in Functions 8.4 Functions and Return Values 8.5 Exceptions 9.1 Indexing 9.2 Slicing 9.4 Strings and For Loops 9.5 The in Keyword 9.6 String Methods 10.1 Tuples 10.2 Lists 10.3 For Loops and Lists 10.4 List Methods 11.1 2d Lists 11.2 List Comprehensions 11.4 Dictionaries
 Standard 10.1 Functions and Parameters 1 10.2 Functions and Parameters 2 10.3 Functions and Parameters 3 10.4 Functions and Return Values 1 10.5 Functions and Return Values 2
 Standard 9.1 Functions and Parameters 1 9.2 Functions and Parameters 2 9.3 Functions and Parameters 3 9.4 Functions and Return Values 1 9.5 Functions and Return Values 2
 Standard 1.1 Intro to Python with Tracy the Turtle 1.2 Tracy's Grid World 1.3 Turning Tracy 1.4 For Loops 1.5 Turning Tracy Using Angles 1.8 Functions 1.9 Artistic Effects 1.10 Top Down Design 1.11 Variables 1.12 User Input 1.13 Parameters 1.14 Using i in For Loops 1.15 Extended Loop Control 1.16 If Statements 1.17 If/ Else Statements 1.18 While Loops 1.19 Putting Together Control Structures 3.3 Comments & Pseudocode 11.14 More Karel Examples and Testing 15.1 micro:bit Challenges
 Standard 9.1 Functions and Parameters 1 9.2 Functions and Parameters 2 9.3 Functions and Parameters 3 9.4 Functions and Return Values 1 9.5 Functions and Return Values 2
 Standard 1.1 Intro to Python with Tracy the Turtle 1.2 Tracy's Grid World 1.3 Turning Tracy 1.4 For Loops 1.5 Turning Tracy Using Angles 1.8 Functions 1.9 Artistic Effects 1.10 Top Down Design 1.11 Variables 1.12 User Input 1.13 Parameters 1.14 Using i in For Loops 1.15 Extended Loop Control 1.16 If Statements 1.17 If/ Else Statements 1.18 While Loops 1.19 Putting Together Control Structures 3.3 Comments & Pseudocode 11.14 More Karel Examples and Testing 15.1 micro:bit Challenges
 Standard 11.1 Functions and Parameters 1 11.2 Functions and Parameters 2 11.3 Functions and Parameters 3 11.4 Functions and Return Values 1 11.5 Functions and Return Values 2
 Standard 3.1 Intro to Python with Tracy the Turtle 3.2 Tracy's Grid World 3.3 Turning Tracy 3.4 For Loops 3.5 Turning Tracy Using Angles 3.8 Functions 3.9 Artistic Effects 3.10 Top Down Design 3.11 Variables 3.12 User Input 3.13 Parameters 3.14 Using i in For Loops 3.15 Extended Loop Control 3.16 If Statements 3.17 If/ Else Statements 3.18 While Loops 3.19 Putting Together Control Structures
 Standard 6.3 Looping 6.4 Branching
 Standard 17.3 Functions and Parameters 3 17.5 Functions and Return Values 2 17.1 Functions and Parameters 1 17.2 Functions and Parameters 2 17.4 Functions and Return Values 1
 Standard 4.3 Comparison Operators 4.4 Logical Operators 5.1 While Loops 5.2 For Loops 5.3 Break and Continue 5.4 Nested Control Structures 6.1 Functions 6.2 Functions and Parameters 6.3 Namespaces in Functions 6.4 Functions and Return Values 6.5 Exceptions 8.1 Indexing 8.2 Slicing 8.4 Strings and For Loops 8.5 The in Keyword 8.6 String Methods 9.1 Tuples 9.2 Lists 9.3 For Loops and Lists 9.4 List Methods 9.5 2d Lists 18.1 Intro to Python with Tracy the Turtle 18.2 Tracy's Grid World 18.3 Turning Tracy 18.4 For Loops 18.5 Turning Tracy Using Angles 18.8 Functions 18.9 Artistic Effects 18.10 Top Down Design 18.11 Variables 18.12 User Input 18.13 Parameters 18.14 Using i in For Loops 18.15 Extended Loop Control 18.16 If Statements 18.17 If/ Else Statements 18.18 While Loops 18.19 Putting Together Control Structures 12.1 List Comprehensions 12.3 Dictionaries
 Standard 9.1 Functions and Parameters 1 9.2 Functions and Parameters 2 9.3 Functions and Parameters 3 9.4 Functions and Return Values 1 9.5 Functions and Return Values 2
 Standard 1.1 Intro to Python with Tracy the Turtle 1.2 Tracy's Grid World 1.3 Turning Tracy 1.4 For Loops 1.5 Turning Tracy Using Angles 1.8 Functions 1.9 Artistic Effects 1.10 Top Down Design 1.11 Variables 1.12 User Input 1.13 Parameters 1.14 Using i in For Loops 1.15 Extended Loop Control 1.16 If Statements 1.17 If/ Else Statements 1.18 While Loops 1.19 Putting Together Control Structures 3.3 Comments & Pseudocode 6.14 More Karel Examples and Testing 10.1 micro:bit Challenges
 Standard 12.1 Functions and Parameters 1 12.2 Functions and Parameters 2 12.3 Functions and Parameters 3 12.4 Functions and Return Values 1 12.5 Functions and Return Values 2
 Standard 8.1 Functions and Parameters 1 8.2 Functions and Parameters 2 8.3 Functions and Parameters 3 8.4 Functions and Return Values 1 8.5 Functions and Return Values 2
 Standard 23.3 Looping 23.4 Branching
 Standard 1.1 Intro to Python with Tracy the Turtle 1.2 Tracy's Grid World 1.3 Turning Tracy 1.4 For Loops 1.5 Turning Tracy Using Angles 1.8 Functions 1.9 Artistic Effects 1.10 Top Down Design 1.11 Variables 1.12 User Input 1.13 Parameters 1.14 Using i in For Loops 1.15 Extended Loop Control 1.16 If Statements 1.17 If/ Else Statements 1.18 While Loops 1.19 Putting Together Control Structures 3.3 Comments & Pseudocode 11.14 More Karel Examples and Testing 15.1 micro:bit Challenges
 Standard 9.1 Functions and Parameters 1 9.2 Functions and Parameters 2 9.3 Functions and Parameters 3 9.4 Functions and Return Values 1 9.5 Functions and Return Values 2
 Standard 9.1 Functions and Parameters 1 9.2 Functions and Parameters 2 9.3 Functions and Parameters 3 9.4 Functions and Return Values 1 9.5 Functions and Return Values 2
 Standard 1.1 Intro to Python with Tracy the Turtle 1.2 Tracy's Grid World 1.3 Turning Tracy 1.4 For Loops 1.5 Turning Tracy Using Angles 1.8 Functions 1.9 Artistic Effects 1.10 Top Down Design 1.11 Variables 1.12 User Input 1.13 Parameters 1.14 Using i in For Loops 1.15 Extended Loop Control 1.16 If Statements 1.17 If/ Else Statements 1.18 While Loops 1.19 Putting Together Control Structures 3.3 Comments & Pseudocode 11.14 More Karel Examples and Testing 15.1 micro:bit Challenges
 Standard 9.1 Functions and Parameters 1 9.2 Functions and Parameters 2 9.3 Functions and Parameters 3 9.4 Functions and Return Values 1 9.5 Functions and Return Values 2
 Standard 1.1 Intro to Python with Tracy the Turtle 1.2 Tracy's Grid World 1.3 Turning Tracy 1.4 For Loops 1.5 Turning Tracy Using Angles 1.8 Functions 1.9 Artistic Effects 1.10 Top Down Design 1.11 Variables 1.12 User Input 1.13 Parameters 1.14 Using i in For Loops 1.15 Extended Loop Control 1.16 If Statements 1.17 If/ Else Statements 1.18 While Loops 1.19 Putting Together Control Structures 3.3 Comments & Pseudocode 11.14 More Karel Examples and Testing 15.1 micro:bit Challenges
 Standard 9.1 Functions and Parameters 1 9.2 Functions and Parameters 2 9.3 Functions and Parameters 3 9.4 Functions and Return Values 1 9.5 Functions and Return Values 2
 Standard 1.1 Intro to Python with Tracy the Turtle 1.2 Tracy's Grid World 1.3 Turning Tracy 1.4 For Loops 1.5 Turning Tracy Using Angles 1.8 Functions 1.9 Artistic Effects 1.10 Top Down Design 1.11 Variables 1.12 User Input 1.13 Parameters 1.14 Using i in For Loops 1.15 Extended Loop Control 1.16 If Statements 1.17 If/ Else Statements 1.18 While Loops 1.19 Putting Together Control Structures 3.3 Comments & Pseudocode 11.14 More Karel Examples and Testing 15.1 micro:bit Challenges
 Standard 1.1 Intro to Python with Tracy the Turtle 1.2 Tracy's Grid World 1.3 Turning Tracy 1.4 For Loops 1.5 Turning Tracy Using Angles 1.8 Functions 1.9 Artistic Effects 1.10 Top Down Design 1.11 Variables 1.12 User Input 1.13 Parameters 1.14 Using i in For Loops 1.15 Extended Loop Control 1.16 If Statements 1.17 If/ Else Statements 1.18 While Loops 1.19 Putting Together Control Structures 4.3 Comments & Pseudocode 14.14 More Karel Examples and Testing 7.1 micro:bit Challenges
 Standard 9.1 Functions and Parameters 1 9.2 Functions and Parameters 2 9.3 Functions and Parameters 3 9.4 Functions and Return Values 1 9.5 Functions and Return Values 2
 Standard 1.1 Intro to Python with Tracy the Turtle 1.2 Tracy's Grid World 1.3 Turning Tracy 1.4 For Loops 1.5 Turning Tracy Using Angles 1.8 Functions 1.9 Artistic Effects 1.10 Top Down Design 1.11 Variables 1.12 User Input 1.13 Parameters 1.14 Using i in For Loops 1.15 Extended Loop Control 1.16 If Statements 1.17 If/ Else Statements 1.18 While Loops 1.19 Putting Together Control Structures 3.3 Comments & Pseudocode 11.14 More Karel Examples and Testing 15.1 micro:bit Challenges
 Standard 3.1 Intro to Python with Tracy the Turtle 3.2 Tracy's Grid World 3.3 Turning Tracy 3.4 For Loops 3.5 Turning Tracy Using Angles 3.8 Functions 3.9 Artistic Effects 3.10 Top Down Design 3.11 Variables 3.12 User Input 3.13 Parameters 3.14 Using i in For Loops 3.15 Extended Loop Control 3.16 If Statements 3.17 If/ Else Statements 3.18 While Loops 3.19 Putting Together Control Structures 8.14 More Karel Examples and Testing
 Standard 3.1 Intro to Python with Tracy the Turtle 3.2 Tracy's Grid World 3.3 Turning Tracy 3.4 For Loops 3.5 Turning Tracy Using Angles 3.8 Functions 3.9 Artistic Effects 3.10 Top Down Design 3.12 Variables 3.13 User Input 3.14 Parameters 3.15 Using i in For Loops 3.16 Extended Loop Control 3.17 If Statements 3.18 If/ Else Statements 3.19 While Loops 3.20 Putting Together Control Structures
 Standard 1.1 Intro to Python with Tracy the Turtle 1.2 Tracy's Grid World 1.3 Turning Tracy 1.4 For Loops 1.5 Turning Tracy Using Angles 1.8 Functions 1.9 Artistic Effects 1.10 Top Down Design 1.11 Variables 1.12 User Input 1.13 Parameters 1.14 Using i in For Loops 1.15 Extended Loop Control 1.16 If Statements 1.17 If/ Else Statements 1.18 While Loops 1.19 Putting Together Control Structures 3.3 Comments & Pseudocode 11.14 More Karel Examples and Testing 15.1 micro:bit Challenges
 Standard 9.1 Functions and Parameters 1 9.2 Functions and Parameters 2 9.3 Functions and Parameters 3 9.4 Functions and Return Values 1 9.5 Functions and Return Values 2
 Standard 24.3 Functions and Parameters 3 24.3 Functions and Parameters 3 24.5 Functions and Return Values 2 24.5 Functions and Return Values 2 24.1 Functions and Parameters 1 24.1 Functions and Parameters 1 24.2 Functions and Parameters 2 24.2 Functions and Parameters 2 24.4 Functions and Return Values 1 24.4 Functions and Return Values 1
 Standard 16.3 Looping 16.4 Branching
 Standard 7.1 Functions and Parameters 1 7.2 Functions and Parameters 2 7.3 Functions and Parameters 3 7.4 Functions and Return Values 1 7.5 Functions and Return Values 2
 Standard 9.1 Functions and Parameters 1 9.2 Functions and Parameters 2 9.3 Functions and Parameters 3 9.4 Functions and Return Values 1 9.5 Functions and Return Values 2
 Standard 21.3 Looping 21.4 Branching
 Standard 1.2 Intro to Python with Tracy the Turtle 1.3 Tracy's Grid World 2.1 Turning Tracy 2.2 For Loops 2.3 Turning Tracy Using Angles 3.3 Functions 3.4 Artistic Effects 3.5 Top Down Design 4.2 Variables 4.3 User Input 4.4 Parameters 4.6 Using i in For Loops 4.7 Extended Loop Control 5.1 If Statements 5.2 If/ Else Statements 5.3 While Loops 6.1 Putting Together Control Structures
 Standard 9.1 Functions and Parameters 1 9.2 Functions and Parameters 2 9.3 Functions and Parameters 3 9.4 Functions and Return Values 1 9.5 Functions and Return Values 2
 Standard 9.1 Functions and Parameters 1 9.2 Functions and Parameters 2 9.3 Functions and Parameters 3 9.4 Functions and Return Values 1 9.5 Functions and Return Values 2
 Standard 1.1 Intro to Python with Tracy the Turtle 1.2 Tracy's Grid World 1.3 Turning Tracy 1.4 For Loops 1.5 Turning Tracy Using Angles 1.8 Functions 1.9 Artistic Effects 1.10 Top Down Design 1.11 Variables 1.12 User Input 1.13 Parameters 1.14 Using i in For Loops 1.15 Extended Loop Control 1.16 If Statements 1.17 If/ Else Statements 1.18 While Loops 1.19 Putting Together Control Structures 3.3 Comments & Pseudocode 11.14 More Karel Examples and Testing 15.1 micro:bit Challenges
 Standard 7.1 Functions and Parameters 1 7.2 Functions and Parameters 2 7.3 Functions and Parameters 3 7.4 Functions and Return Values 1 7.5 Functions and Return Values 2
 Standard 7.1 Functions and Parameters 1 7.2 Functions and Parameters 2 7.3 Functions and Parameters 3 7.4 Functions and Return Values 1 7.5 Functions and Return Values 2
 Standard 13.17 Functions and Return Values 2 13.14 Functions and Parameters 1 13.15 Functions and Parameters 2 13.16 Functions and Return Values 1
 Standard 8.17 Functions and Return Values 2 8.14 Functions and Parameters 1 8.15 Functions and Parameters 2 8.16 Functions and Return Values 1