题目
CSE-20-01 Practice Midterm
单项选择题
What is the output? for i in range(11): if i == 6: continue else: print(i, end=' ')
查看解析
标准答案
Please login to view
思路分析
First, consider the loop: for i in range(11) iterates i from 0 to 10 inclusive. Inside the loop, there is a condition: if i == 6: continue. The continue statement skips the rest of the loop body for th......Login to view full explanation登录即可查看完整答案
我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。
类似问题
Match each loop definition with how many iterations it’ll run for. 1: for k=1:2:10 2: for k=[3,7,10] 3: while 4<pi 4: for k=linspace(1,10,10)
Which of the following pseudocode statements represents a repetition statement?
Which of the following is a drawback of while loops?
For loops are more adaptable than while loops.
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!