存储20个学生数组的程序。把他们分成两组进行一次小组活动。编写一个Python程序,在数组中循环并将所有奇数学生放入一个名为group1
的新数组中,而将偶数学生放入一个名为group2
的新数组中需要帮助
pupil= []
numpupil = input('Number of Pupils: ')
for #need help with the for loop and continuing onward from this
pupil[index] = input("Pupil " + str(pupil))
Tags:
当然,这可能不是你老师所期望的。。。。祝你以后考试顺利
相关问题 更多 >
编程相关推荐