Hmmm...that is true
Here a quizlet about if you need it!
https://quizlet.com/15207805/csci-241-flash-cards/
Answer:
Choose what you think based on this.
Explanation:
with a for loop:
>>> students = 3
>>> for student in range(students):
>>> print(student)
would output
>>> 0
>>> 1
>>> 2
with a while loop now:
>>> students = 3
>>> student = 0
>>> while student < students:
>>> student = student + 1
>>> print(student)
the for loop is more compact than the while loop. But there may be some times when a you cant do a for loop. The first question is more than likely definite but I don't know the second answer.
Answer:
1: A loop will continue running until the defined condition returns false . ... You can type js for , js while or js do while to get more info on any of these. ... initialization - Run before the first execution on the loop. ... But it can be used to decrement a counter too.
2: The loop increments the value of new while the loop condition is true. The end value of new is 3.
3: We could use some sort of finger recognition or face so they don’t have to type in their password.
4: give them a second chance for their date of birth.
5: sum = 0 must be before for loop. If inside for loop, it will keep resetting sum to 0 each iteration.
Explanation: