-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
36 lines (24 loc) · 773 Bytes
/
main.py
File metadata and controls
36 lines (24 loc) · 773 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
# This is a sample Python script.
# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
mylist = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
print(mylist)
print(mylist[0])
print(mylist[-1])
newlist = mylist[1:4]
print(newlist)
newlist[0] = 100
print(newlist)
danhsachcoding = ("thang 1", "thang 2", "thang 3")
print(danhsachcoding)
# danhsachcoding[0] = "thang 11" // will error
print(danhsachcoding)
mydictionary = {"top1": "30", "top2": 12}
print(mydictionary)
print(mydictionary["top2"])
mydictionary["top2"] = "hay lam"
print(mydictionary["top2"])
myEmptyDictionary = {}
myEmptyDictionary["ngay1"] = 100
myEmptyDictionary["ngay2"] = 101
print(myEmptyDictionary)