立即学习:https://edu.csdn.net/course/play/26676/338783?utm_source=blogtoedu
作业1:
lst = [1,2,3,4,5,6,7,8,9]
1、lst[1::2]
2、lst2 = lst[-1::-2]
lst2.insert(3,4)
3、lst[:4:]
4、lst[-6::-1]
作业3:
myList = ['zero','one','two','three','four','five','six','seven','eight','nine']
number = input("Please input a number: ")
lst = []
for i in number:
word = myList[int(i)]
lst.append(word)
print(" ".join(lst))