# i=0
# sum = 0
# while i<=1000:
#     sum=sum+i
#     i=i+1
# print(sum)
#1+2+。。。+1000的值


# i=0
# while i<=100:
#     i+=i
# print("hello,打印次数：",i)


# range表示，从0数到1001，参数可以放字符串，等等
# s=0
# for i in range(1001): 
#     s=s+i
# print(s)

# str = "hello my name is hanmeimei"
# for s1 in str:
#     print(s1)

classmates = ['Michael', 'Bob', 'Tracy']
classmates.append('Adam')
classmates.insert(1, 'Jack')
classmates.pop()
print(classmates)
