Java Games: Flashcards, matching, concentration, and word search.

Python M2L2 Variable, Data Types, and Errors

AB
variablenamed place in computer memory that holds a value; sometimes called a named container
userthe person who runs the program
programmercoder
stringa common data type that consists of of one or more characters
intkeyword for python- whole numbers and their opposite numbers, such as -2, -1, 0, 1, 2, and 3.
floatDecimal numbers such as 3.33, 0.01, 9.9999, and 3.0 are called floating numbers.
boolkeyword for python: true/fase or yes/no
integergeneral programming term-whole numbers and their opposite numbers, such as -2, -1, 0, 1, 2, and 3.
booleangeneral programming term-true/false or yes/no
data typea classification that specifies the type of value a variable can hold, defining how the computer will interpret and store that data
assignment statementuses the equals (=) sign to store a value in a variable; must be written before you actually use the variable
literalwhen a value is directly typed in as the value. For example 10 instead of 2 x 5
initializeto assign a value to a variable for the first time
debuggingFiguring out the issue and fixing it
type errorwhen you try to do something with a piece of data that doesn't make sense for its "type." Most commonly trying to perform a mathematic operation on a string data type and a numerical data type
syntax errorthe code doesn't follow the rules of the programming language, making it unreadable to the computer; usually a typo
name errorusually the variable or function has not be created prior to trying to refer to it in code


CTE Teacher
NC

This activity was created by a Quia Web subscriber.
Learn more about Quia
Create your own activities