-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path1.1.py
More file actions
51 lines (28 loc) · 780 Bytes
/
1.1.py
File metadata and controls
51 lines (28 loc) · 780 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
48
49
50
51
#tipe data Boolean
print(True)
# tipe data String
print("Ayo belajar Python")
print('Belajar Python Sangat Mudah')
# tipe data Integer
print(20)
# tipe data Float
print(3.14)
# tipe data Hexadecimal
print(9)
# tipe data Complex
print(5j)
# tipe data List
print([1, 2, 3, 4, 5])
print(["satu", "dua", "tiga"])
# tipe data Tuple
print((1, 2, 3, 4, 5))
print(("satu", "dua", "tiga"))
# tipe data Dictionary
# tipe data Dictionary dimasukan ke dalam variabel biodata
biodata = {
"nama": "Andi",
'umur': 21
}
#proses inisialisasi variabel biodata
print(biodata)# proses pencetakan variabel biodata yang berisi tipe data Dictionary
type(biodata)# fungsi untuk mengecek jenis tipe data.akan tampil < class 'dict' > yang berarti dict adalah tipe data dictionary