πŸ‘©πŸ½β€πŸ’» Adding to the Code Template | Betabox Learning

πŸ‘©πŸ½β€πŸ’» Adding to the Code Template

Now let's type new code into the template.

Lesson Steps

  1. Have students go to theΒ Adding to the Code Template section.Β 
  2. Students will follow along with the video to add code to their copy/pasted template.
  3. Encourage students to read The Code Explained subsection below. Nearly all student-side sections will have information under the videos to help explain the code they are using as well as tips.
  4. Check for understanding and answer any questions they may have before moving on to the next section.
  5. Review the section vocabulary below.

Vocabulary

  • Constant variables: Variables where the value doesn’t change. Python syntax for constants are to use all caps. Normally,Β variablesΒ store information where the values do change but in this case they do not.
  • Initialization functions: Allow something to run in a program. The syntax for functions is to use () are the end of the name.
  • Strings: Characters, letters, spaces, and symbols in between quotation marks.Β Think of them like sentences you want your game to show on the screen.
  • Scaling: Resize the height and the width in the same proportions when you make it bigger or smaller.
X
X
X