作业一
names = ["jerry", "hansen", "Amy", "Wendy", "Tom", "Bob"] # 初始化列表names
names_new = [i.upper() for i in names if len(i) > 3] # ['JERRY', 'HANSEN', 'WENDY']
作业二
li = [(i, j)for i in range(0, 5, 2) for j in range(1, 5, 2)] # [(0, 1), (0, 3), (2, 1), (2, 3), (4, 1), (4, 3)]
作业三
li1 = ['Bob', 'JOHN', 'alice', 'bob', 'ALICE', 'James', 'Bob', 'JAMES', 'jAMeS'] # 初始化列表li1
st = list({i.lower().capitalize()for i in li1}) # ['John', 'Alice', 'James', 'Bob']