(1)输入3个学生的姓名:jack, helen, tom
(2)输入3个学生年龄:20,18,24
(3)利用学生姓名和学生年龄生成字典
(4)输出所有的姓名,年龄,以及姓名和年龄组成的元组。
slist=[]
msg=dict()
for times in range(1,4):
name=input("学生名字:")
age=input("学生年龄:")
slist.append(name)
slist.append(age)
msg[name]=age
stuple=tuple(slist)
print(stuple)