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

If the distance between you and the Earth increased three times its initial value, how would the force of gravity between you and the Earth change?
How many valence electrons does each of the following atoms have?
Ana mar�a, ?encontraste alg�n regalo para eliana?
When did the first christian armies head for the holy land?
Jack is designing a T-shirt for his geometry class. The front reads: The polygon in which one angle is 68 degrees and each additional angle increases by 20 degr
The bedrock principle of business is that it should ________.
With the help of my friends, i not only got through a(n ____ situation, but i also learned from it.
Which element of thoreau's style is shown in these passages from walden? simplicity, simplicity, simplicity! i say, let your affairs be as two or three, and not
Which of the following are mixtures ? Air, salt, water, salt water
What does "Of Mice and Men" reveal about dreams and aspirations? Give an example with a specific character.