Python问题速来

1)定义一个列表命名为Ist1、里面有10个字符分别是从'a~'g';
2)定义另一个列表Ist2,包含2个元素5和(34)
3)将Ist2添加到Ist1中,成为lst1中的最后一个元素4)将Ist1转化为集合类型:5)打印出Ist1的长度。

a,b = eval(input()) # input() is returning str, with eval convert string into lists

print (a) # [1, 3, 5, 7, 9, 10]

print (b) # [2, 4, 6, 8]

use slicing to return list a without last element

use operator + to conconate lists

result = a[:-1] + b

print (result)