list_test=['teacher','student','master','father']
print(list_test)
print(list_test[0])
print(list_test[-1])
message=f"I am a {list_test[0].title()}"
print(message)
list_test[3]=2
list_test.append(3)
list_test.insert(0,"0")
del list_test[0]
list_test.pop()
list_test.pop(-1)
list_test.remove("teacher")
number=[9,8,7,6,5,4,3,2,1,]
print(sorted(number))
print(number)
length=len(number)
for i in range(length):
print(number[i],end=' ')
print()
for item in number:
print(item,end=' ')
print()
print(max(number))
print(min(number))
print(sum(number))
squares=[values**2 for values in range(1,9)]
print(squares)
num=squares[1:3]
print(squares[1:3])
print(squares[:4])
print(squares[0:])
print(type(squares[1:3]))
new_list=squares[:]
peoples={'color':"green",'point':6}
print(peoples["color"])
peoples["x_point"]=7
peoples["y_point"]=8
dic={}
print(type(dic))
peoples["speed"]=3
peoples['x_point']=8
del peoples['point']
value=peoples.get("speed","NO this values")
print(value)
value=peoples.get("point","NO this values")
print(value)
print(type(peoples.items()))
print(type(peoples.keys()))
print(type(peoples.values()))
for key,data in peoples.items():
print(f"key: {key}",end=' ')
print(f"data:{data}")
for key in peoples.keys():
print(f"key: {key.title()}")
for key in sorted(peoples.keys()):
print(f"key: {key}")
sum=1
for values in peoples.values():
print(f"value{sum}: {values}",end=" ")
sum=sum+1
student1={"name":"小明","age":18,"weight":80,"height":1.80,}
student2={"name":"小红","age":20,"weight":60,"height":1.60,}
student3={"name":"小张","age":19,"weight":75,"height":1.70,}
Student=[student1,student2,student3]
print(Student)