Intro to Python-Quiz 4-INT-2240

Intro to Python-Quiz 4-INT-2240

Intro to Python-Quiz 4-Question 1

count = 1
# condition: Run loop till count is less than 3
while count < 3:
print(count)
count = count + 1

1

2

3

4

5

Question 2

count=0
number = 180
while number > 10:
number = number/3
count=count+1
print(count)

(with margin: )

Question 3

for num in range(4):
print(num)

1

2

3

4

5

6

7

Question 4

sum = 0
for i in range(2, 22, 2):
sum = sum + i
print(sum)

Answer Preview-Intro to Python-Quiz 4-INT-2240

Intro to Python-Quiz 4-INT-2240

 

$3.00

Posted

in

by

Tags: