Before you start this course, you must login to Replit
If you have forgotten your Replit account user name or password, ask your Coder Coach.
If you have forgotten your Replit account user name or password, ask your Coder Coach.
Students learn how to use the = operator to assign data into variables. Students can refer to the lesson plan to learn the goals and objectives of this unit, get a preview of the material taught in the unit, and learn new software defenitions.
Look at the three code examples and study each carefully. For each example:
Students will learn to interpret, trace, identify and create python code that uses:
Concept | Explanation | Python Code | Examples |
---|---|---|---|
Strings | The text data type. All string data is treated as text, even if it is numerical characters. | “string goes here” | “This is a string” |
Variable assignment | Putting data into a variable. | = | num1 = 10 name = “Andy” |
Concatenation | Joining string literals (text in speech marks that prints exactly as it appears in the code) to the contents of variables in output, or joining the contents of variables together. There are several ways of doing this, but I’ve used the plus symbol in my exercises. | + | print(“Hello ” + name) full_name = first_name + last_name |
Variable assignment – Using the ‘=’ symbol to store data in a variable. You can find out more about variable assigment here
Concatenation – joining the contents of variables to other variables and/or strings in output. You can find out more about concantenation here
Look for the following things: