charris47 charris47
  • 19-01-2021
  • Computers and Technology
contestada

What will the following program print when run?

for j in range(2):
for i in range(6, 4, -1):
print (i)

Respuesta :

epicmathmoment epicmathmoment
  • 19-01-2021

Answer:

6, 5, 6, 5

Explanation:

The first for means it will run twice. The second one will start at 6 and -1 until it gets to 4 where it will stop before doing anything. We say the first number IS inclusive and the second number ISN'T. The second one produces 6, 5 once but happens twice because of the first for.

Answer Link

Otras preguntas

The average length of time that three computers operate on a given day is 960 minutes. None of the computers operate for less than 930 minutes. What is the grea
pls answer pls pls its ma homework
.........................................................
-13 = [tex]\frac{r}{9}[/tex] +8 what is r?
GIVING BRAINLIEST PLS HELP
State the law of conservation of machine​
What is 154 ÷ 10? A. 0.154 B. 1.54 C.15.4 D.154
một trong những nhược điểm khi nhượng quyền“khi hợp đồng nhượng quyền chấm dứt, doanh nghiệp có giấy phép có thể đã tạo ra một người cạnh tranh mới với chính mì
Mr. Sanchez's sixth-grade class is currently working on a research project about world cultures. Each student has been assigned a different culture to research
Kitchen floors, and floors in high traffic areas, should be kept at all times. А wet B spotless с polished dry D