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

What steps have educational authorities taken to curb violence and other criminal activities in schools?
200 students in a high school senior class are surveyed about what majors they intend to declare in college. Of the 200 students, 80 plan to major in mathematic
Benefits of playing chess
A dealer sold 200 tennis racquets. Some were sold for $33 each and the rest were sold for $18 each. The total receipts from those sales were $4,800. How many ra
Help me on this please
Speech by Barbara Jordan (D-Texas), Member of the House Judiciary Committee. Mr. Chairman: I join in thanking you for giving the junior members of this committe
Please can someone help I try it hard but I don’t understand it
Bressman Inc. has provided the following data concerning one of the products in its standard cost system. Variable manufacturing overhead is applied to product
PLEASE PLEASE HELP ME PLEASEDylan has x pennies and y nickels in his piggy bank. His brother told him to take out at least 6 coins from his piggy bank.Which ine
How many 6in x 9in fit 35640 sq in ?