armaan53 armaan53
  • 24-02-2021
  • Computers and Technology
contestada

write a paragraph in python to print 5 using a for loop

Respuesta :

fichoh
fichoh fichoh
  • 01-03-2021

Answer:

For f in range(10):

if f == 5 :

print(f)

Explanation:

The for loop initiates a range of value and f is used to evaluate each value in the range.

The if statement block checks and detect if the number in the range, f is 5 ; once it detect that f equals to 5, it prints the digit 5 using the print statement.

Answer Link

Otras preguntas

why blood in pulmonary artery is voilet but in pulmonary vein is scarlet?​
Last one is social issues ... please help asap ❤️
Xve Y elementlerinin atom kütleleri arasındaki oranı 27/32 dir Buna göre X2Y3 bileşiğinin kütlece %kaçı Y dir
Prepare the December 31 entry for Riverbed Corporation to record amortization of intangibles. The trademark has an estimated useful life of 4 years with a resid
Explain how the F1 plants had produced pink flowers
870 g of brass contains 40 percent zinic and the rest is copper.find the mass of zinic and copper in the alloy​
what happen if a person dies and they wanted someone to have there car. They died and everyone knows that the car was suppose to go to that person, but the pers
23 x 3 = 57 + 12 = 47 + 22 =
i’m stuck between these two i don’t know which one it is
A restaurant chain with multiple branches would like to measure the effectiveness of a customer skills training program for its employees. A random sample of 30