DN Codebot 16:
Type the following code into REPL. Take a screen shot of the results.
from botcore import *
ls.check(0)
DN Codebot 18:
1. Create a boolean variable and set it equal to true
2. Create a function called goNow.
3. Enable and power both motors to drive forward using the boolean variable
4. Call the function
DN Codebot 19:
Rewrite the code below to fix it so that it runs.
DN CodeBot 20: Write a program so that if the line sensors print the following when detected a threshold of 2500:
line sensor 0 prints: "This is line sensor 0."
line sensor 1 prints: "This is line sensor 1."
line sensor 2 prints: "This is line sensor 2."
line sensor 3 prints: "This is line sensor 3."
line sensor 4 prints: "This is line sensor 4."
DN CodeBot 21: What is the purpose of listing out all of the sensors like this in a conditional statement?
DN CodeBot 22: Make the variable count a global variable.
DN Codebot 23:
Answer the following questions:
myList = (4, 7, 20, -32, -4, -5)
What is myList[1]?
What is myList[2]?
Can you change the first value of the tuple myList to -4? Why or why not?
What does immutable mean?
What is abs(myList[3})?