-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata_types.py
More file actions
47 lines (46 loc) · 952 Bytes
/
data_types.py
File metadata and controls
47 lines (46 loc) · 952 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
42
43
44
45
46
47
def printDataTypes():
#str
name = 'Natalia';
#int
age = 18;
#float
height = 160;
#complex
iq = 100j
#list
pets = ['dog', 'cat'];
#tuple
fruits = ('banana', 'apple');
#range
score = range(10);
#dict
attributes = { 'boobs': 90, 'back': 90 };
#set
vegetables = { 'cucumber', 'tomato' };
#frozenset
frozenVegetables = ({ 'cherry' });
#bool
isWoman = True;
#bytes
array = b'hello';
#bytearray
byteArray = bytearray(5);
#memoryview
memory = memoryview(bytes(5));
#None
n = None;
print(name);
print(str(age));
print(str(height));
print(str(iq))
print(str(pets));
print(str(fruits));
print(str(score));
print(str(attributes));
print(str(vegetables));
print(str(frozenVegetables));
print(str(isWoman));
print(str(array));
print(str(byteArray));
print(str(memory));
print(str(n));