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

(Dipliud, Haploid) cells have homologous chromosomes.
Most native Americans of the Great Basin were ?
Choose the vocabulary word that matches this definition: __________means designated for a meeting. abstinence debris notorious rendezvous
Which one of the following is an example of a repeating decimal? A.0.123321 B.1.234545 C.6.787878 D. 0.6666666
this isn't school related, it's about my stupid phone, when I restart it it switches to auto time by my network providers and I can't get it to stop, anyone
Truth is like the sun." this quote is an example of a. a simile. b. a metaphor. c. an implicit theme. d. personification.
172 + (-167) + (-10) + (-144)
2. Which type of microscope can produce three-dimensional images of a cell’s surface? A. transmission electron microscope B. scanning electron microscope C. dis
Which type of computer graphic can be blown up to a much larger size without getting distorted or losing quality? (Select the best answer) A. A vector graphic
What are some examples of literacy artifacts for self-selected reading?