中国大学MOOC: 给出下面代码:age=23start=2if age%2!=0: start=1for x in range(start,age+2,2): print(x)上述程序输出值的个数是:
举一反三
- 下列程序共输出_______个值:age = 23start...+ 2, 2): print(x)
- American children start school at age .
- 下面程序的输出值是多少?print([x * x for x in range(1, 11) if x % 2 == 0])
- American children usually start to go to school at the age of _____.
- a = [x for x in range(4) if x % 2 ==1],语句print(a)输出为 A: [1, 2, 3] B: [0, 1, 2, 3] C: [0, 2] D: [1, 3]