New Concepts Flashcards
1
Q
(1..5)
A
include 5, 1-5
2
Q
(1…5)
A
exclude 5, 1-4
3
Q
for-loop vs while-loop
A
A for-loop can only iterate (loop) “over” collections of things. A while-loop can do any kind of iteration (looping) you want. However, while-loops are harder to get right and you normally can get many things done with for-loops.