anayaelaine anayaelaine
  • 09-06-2020
  • Computers and Technology
contestada

Write a Python program that accepts a numeric value from the user and prints the number starting from 0 up to the user’s value.

Respuesta :

hello1222 hello1222
  • 10-06-2020

Answer:

num = int(input("Enter a number:"))

#Use becuase the for loop will start at 0

num = num + 1  

for i in range(num):

 print(i)

Answer Link

Otras preguntas

What is experimental probability?
Which of the following is the equation of a line parallel to the line y=3x+2, passing through the point (10,1)? A. 3x - y=29 B. 3x + y=29 C. -3x-y=29 D. 3x + y=
What is the Meaning of MAPEH?
Suppose the circumference of a circle is 8π. What is its area?
Jon is standing on a bridge over a creek. He releases a stone 20 feet from the water. How long will it take the stone to hit the water?
what are the main causes of world war 1 ?
Do you think Henrietta Lacks's family should receive compensation for her cells?
Is 1/2 equivalent to 7/12
What is experimental probability?
Jon is standing on a bridge over a creek. He releases a stone 20 feet from the water. How long will it take the stone to hit the water?