Preparing your experience...
Loading scripts and resources
Preparing your experience...
Loading scripts and resources
Speed quiz: given a for loop, predict the final value of a variable. Show the loop code and 4 answer choices. Examples: 'x=0; for i in range(5): x+=i → x=?' (answer: 10). 'x=1; for i in range(1,5): x*=i → x=?' (answer: 24). 's=""; for c in "hello": s=c+s → s=?' (answer: 'olleh'). 'count=0; for i in
12
Likes
0
Remixes
0
Comments