In this lesson, students will learn about a fundamental aspect of every programming language: Variables. A variable is something that stores information in a program that can be used later.
Students will be able to:
In this lesson, students learn about 4 different data types and what kind of information they hold. They also learn how to use the type
function to determine the data type of a value and use casting to switch values between different data types.
Students will be able to:
type
function to check the type of any valuestr
, int
, and float
to cast values to different data typesIn this lesson, students will dive deeper into the Strings data type, learning how to concatenate strings and use escape sequences.
Students will be able to:
In this lesson, students will learn how to call methods on values and use three different string methods (upper
, lower
, and capitalize
) to alter text.
Students will be able to:
upper
lower
capitalize
In this lesson, students will learn how to incorporate user input into their programs. Students will learn how to request user input as both strings and integers, store the input in a variable, and how format
can be used to create messages.
Students will be able to:
format
to edit string messagesIn this lesson, students will dive deeper into the concept of functions by exploring how to use parameters to customize their code.
Students will be able to:
In this lesson, students will dive into common errors they may run into while developing Tracy programs and learn some techniques for debugging their programs.
Students will be able to:
In this lesson, students will learn how to allow the user to interact with their programs using their mouse. They will learn how to allow interaction when the user clicks on Tracy or anywhere on the canvas as well as how to effectively use variables inside clickable programs.
Students will be able to:
onclick
function inside their programsgetscreen
function to allow the user to click anywhere on the canvas to trigger an eventonclick
functionIn this lesson, students will expand their knowledge of for loops. They are aware that for loops execute the same lines of code a given number of times but, in this lesson, will learn that i
is actually a variable that can be used to control commands inside the loop as it is running.
Students will be able to:
i
as a variable inside their for loop to control different commandsIn this lesson, students will learn the extended parameters that can be used to control the value of i
in for loops. They will then be able to use the variable i
to control much more of their code by setting specific values.
Students will be able to:
i
using extended parametersIn this lesson, students review content with a 10 question End-of-Unit Quiz.
Students will be able to:
type
print
int
/ str
/ float
capitalize
upper
lower
input
onclick