Data Types and Checks Flashcards
Integers
Whole numbers
Floats
Numbers that allow a decimal point
Boolean
True or False ONLY
Strings
Pieces of text
Length Checks
Used to determine if the data is long enough (i.e. Checking a phone number is not too long or too short)
Range Checks
Used to determine that the data is not exceeding a maximum or minimum value
Prescence Checks
Used to determine that something has been entered and that the data is not empty
Type Checks
Used to determine the right data type is being used (i.e. Not using String for Integers.)
Format Check
Used to determine that the data is in the correct format (i.e. Using @ and .com for emails)
Count-Controlled Loop
Used when the number of iterations in a loop is going to occur
Record Data Structure
A data structure that stores multiple fields/attributes, where each field can be a different type of data (i.e. dictionaries in Python can store multiple data types)