Programming ConceptsLesson 12Free preview
Data Types
This lesson is part of Intro to Programming · All levels
Summary
This lesson grouped the types of data commonly used in programming: numerical such as integers and floating points, string text, boolean for logical values, as well as array-like collection structures. Each type determines what type of value can be stored and what operations are legitimately performed against it. Choosing the right type makes the program more memory-efficient and error-free.
Key points
- Numerical type: integer (round) and float (decimal)
- Strings for text and booleans for true/false
- The array keeps the set of values of the same type
- The data type determines the validity of an operation on a value
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.