1742271996_python_assignment
1742271996_python_assignment
Python is a high-level programming language that supports various data types. A data type
is a classification of data based on its format, size, and set of values it can hold. Python has
several built-in data types that can be used to store and manipulate data.
Integers are whole numbers, either positive, negative, or zero. They are used to represent
numerical values.
Example:
```
X=5
Y = -3
Z=0
```
Floats are decimal numbers. They are used to represent numerical values with a fractional
part.
Example:
```
X = 3.14
Y = -0.5
Z = 0.0
```
Example:
```
X = “hello”
Y = ‘hello’
```
Booleans are true or false values. They are used to represent logical values.
Example:
```
X = True
Y = False
```
Example:
```
X = [1, 2, 3]
```
Tuples are ordered, immutable collections of items. They are used to represent collections
of data that should not be changed.
Example:
```
X = (1, 2, 3)
```
Dictionaries are unordered collections of key-value pairs. They are used to represent
mappings of keys to values.
Example:
```
```
Python has several built-in data types that can be used to store and manipulate data.
Understanding these data types is essential for any Python programmer. By using the right
data type for the job