What will be displayed after the following code is executed assuming num was initially set to zero? for n in range(0, 20, 5): num += n print(num)单项选择题
A
25
B
5 10 15
C
20
D
30
登录即可查看完整答案
我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。
类似问题
The type of control structure shown is best described as a
What is the output of the following code? for (int x = 1; x <= 10; x++) { x += 3; System.out.print(x + " "); }
How many times will this loop iterate? for (i = 2; i < 10; i += 4) { ... }
Which control statement is best suited when the number of loop iterations is known in advance?
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!