From 4ae21f7b54c58f232745769ed008a34154fecf78 Mon Sep 17 00:00:00 2001 From: max1million101 <122141183+max1million101@users.noreply.github.com> Date: Sun, 16 Jun 2024 10:01:02 -0700 Subject: [PATCH] Update 01_data_types.py A short (and hopefully simple) definition of what a data type is and what it can do. --- class_one/01_data_types.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/class_one/01_data_types.py b/class_one/01_data_types.py index c7d819d..fe80bc5 100644 --- a/class_one/01_data_types.py +++ b/class_one/01_data_types.py @@ -10,6 +10,9 @@ ## WARM UP QUIZ +# What is a data type? +# In Computer Science and Computer Programming, a data type (also called simply "type) is a collection of data values that are either a set of possible values, a set of permitted operations for certain values, or values represented by machine type. By constraining possible values, data types allow interpreters and/or compilers to efficiently use certain data in the manner that a programmer wishes it to be use. As a result, many programming languages support basic data types of integers (no matter the size), floating-point numbers (approximations of real numbers, usually labeled as "float"), characters, and Booleans (a data type used in True/False variables and lines of code). + # PART I a = 5 b = 5.0