Error
Errors:
Write a program to have Karel pick up her first piece of trash! Direct Karel to move to the tennis ball, pick it up, and then move one more time.
Take a moment to explore this example and familiarize yourself with the code editor:
- Press “Run” to see the program run. Follow along with the yellow highlight as Karel executes each command.
- Click “Reset” to see what it means for the program to reset.
- Click on the Left, Pause, and Right arrow to see how you can step through the program.
- Try changing the speed by sliding the bar between the turtle and the hare.
Ending World
Karel's Built in Commands
Karel Commands
|
|
|
|
|
UltraKarel
UltraKarel Commands
|
UltraKarel Conditions
|
|
Color
Random
Functions
Writing a Function
Writing a function is like teaching karel a new word.
Naming Functions: You can name your functions whatever you want, but you can't have spaces in the function name.
Remember that commands in functions must be indented one level
Calling a Function
You call a function to tell the computer to actually carry out the new command.
Conditional Statements
Remember that comands in conditional statements must be indented one level.If statements
If/Else statements
Example of if statements
Karel Conditions
Don't forget the()
at the end!
|
|