-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2_data_type.py
More file actions
41 lines (32 loc) · 763 Bytes
/
2_data_type.py
File metadata and controls
41 lines (32 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Integer (int)
integer_number = 10
print("Integer:", integer_number)
# Float (float)
float_number = 3.14
print("Float:", float_number)
# String (str)
string_value = "Hello, world!"
print("String:", string_value)
# Boolean (bool)
true_value = True
false_value = False
print("Boolean (True):", true_value)
print("Boolean (False):", false_value)
# List
list_data = [1, 2, 3, 4, 5]
print("List:", list_data)
# Tuple
tuple_data = (1, 2, 3, 4, 5)
print("Tuple:", tuple_data)
# Dictionary
dictionary_data = {'key1': 'value1', 'key2': 'value2'}
print("Dictionary:", dictionary_data)
# Set
set_data = {1, 2, 3, 4, 5}
print("Set:", set_data)
# NoneType (None)
none_value = None
print("None:", none_value)
# Bytes
bytes_data = b'Hello'
print("Bytes:", bytes_data)