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

Complete these sentences: Angles are typically named using ________ letters. The _______ letter must always represent the ___________.
Which earlier revolution was a model for the revolutions in both russia and china?
A(n)________ is a homogenous volume of air defined based on its temperature, and moisture characteristics. air mass cyclone front parcel
What is the second person present tense of the verb cantar?
when the cells of most organisms freeze, they burst. whitch property of water cause this to occur?
Which expression is equivalent to 4(7 + 8)? 11 + 8 11 + 12 28 + 12 28 + 32
Compared to voters in a general election, voters in presidential primary elections are?
The process of building into a job such motivating factors as recognition and achievement is called
Rome was a republic ruled by senators (wealthy landowners) and the people. Question 1 options: True False
Trials in an experiment with a polygraph include 98 results that include 24 cases of wrong results and 74 cases of correct results. use a 0.01 significance leve