The area where you write your code.
What is the script editor?
The "grammar rules" that determine how Python must be written.
What is syntax?
49 is an example of what data type?
What is an integer?
The area where the program's output is displayed.
What is the console?
True or false:
You can slightly misspell words in Python and the computer will still understand.
False! Everything must be spelled and formatted correctly. Python is very strict!
3.14 is an example of what data type?
When different parts of code appear in different colors to make it easier to read.
What is syntax highlighting?
The symbols that go at the end of every command in Python.
Parentheses ( )
The data type that is inside of quotation marks.
What is a string?
Would the output of this algorithm be a syntax error?
1. player.move_forward()
2. # add player customization options
3. player.turn_right()
No! The interpreter would ignore the comment and the rest of the algorithm has proper syntax.
Lines of code starting with # that are ignored by the interpreter. Programmers use them to make notes in their code.
What are comments?
Find all 3 bugs/syntax errors in the algorithm:
1. player.move_forward(2)
2. player.turn_right
3. plyer_move.forward()
1. Correct syntax
2. No parentheses!
3. "plyer" and _ and . are swapped
yes is an example of what data type?
What is a boolean?
Human-readable code written by a programmer before the computer interprets it.
What is source code?
Is this algorithm bugged? If yes, where?
1. player.move_forward
2. player.move_forward
3. player.turn_left
4. player.move_forward
Each line of code is missing parentheses ( ) at the end.
"12345" is an example of what data type?
What is a string?