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

how well does the speaker use the aids?​
What actually is the logo or symbol for the city of Valencia in Spain?
convert into simple present, present continuous ​
Cholera bacteria causes sever diarrhoea. These bacteria spread rapidly when sewage is not piped away. Why is this?​
1+1×2 và 1+4×5 và 4+5×6
If the middle word is used to describe the word'sushi'and the last word is something you live in,can you unscramble the final letters and complete the sentence.
If (x+iy)³ = y+vi then show that (y/x + v/y) = 4(x²-y²)​
'He has completed his work.' Change into Passive Voice​
A chef will make a soup with five ingredients: one of four meats, one of four vegetables, one of four kinds of noodles, one of four kinds of broth, and one of
define angiosperm with example