Compsci 101, Fall 2014, Lab 3
Answer the following questions on the online google form for lab 3.
-
String Slicing and Dicing
Provide your answers to 3-9, creating each word by slicing:
-
-
-
-
-
-
-
-
Create your own slicing/word puzzle: what's the word and what's the
answer?
APT Acronym
Write a brief, English description of how to solve the APT.
- Complete the code statement below.
words =
- Write the for-loop here:
- Write loop to create the acronym:
acro = ""
return acro
Part 3: turtles in the house
-
Explain how the four squares are drawn without any lines as the turtles
moves between the squares.
- Explain how the turtle moves back to the start of the first square so
it can draw a larger square near it.
- What is the name of the turtle that is created?
- Explain where the turtle blipy in the square method is
created.
- If the name of blipy in the square function was changed to bloopy, how many lines of
code would need to change, and would the program still run?
-
Enter the code you wrote for the window function.