logo

Crowdly

Consider:   current = 1   total = 0     while current ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Consider: 

current = 1 

total = 0 

 

while current <= 7: 

    if current % 2 != 0: 

        total = total + current 

    current = current + 1 

 

print("Total:", total) 

Complete the table. Record total at the end of the iteration that processes the stated value of current. [2 marks] 

Value of current being processed 

total at the end of that iteration 

3 
4 
5 
7 

More questions like this

Want instant access to all verified answers on moodle1.maths.ed.ac.uk?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!