Integers Numeric
Whole numbers, both positive and negative, without decimal points. Used for counting and precise quantities.
123, -45, 0
Understanding the Fundamentals: Data Types
Data types define the kind of values a variable can hold and the operations that can be performed on them. They are fundamental to programming, enabling us to represent and manipulate information effectively.
Whole numbers, both positive and negative, without decimal points. Used for counting and precise quantities.
123, -45, 0
Numbers with decimal points, used for approximations and measurements that require precision.
3.14, -0.5, 2.71828
Sequences of characters, enclosed in quotation marks. Used for text, names, and messages.
"Hello, World!", "Knowledge Base", "123 Main St."
Represents truth values, either true or false. Crucial for conditional logic and decision-making.
true, false
Ordered collections of items, where each item can be of any data type. Useful for storing multiple related values.
[1, 2, 3], ["apple", "banana", "cherry"]
Unordered collections of key-value pairs. Allow for structured data representation, associating labels with values.
{"name": "Alice", "age": 30}, {"city": "New York", "zip": "10001"}