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 does point of view mean
A trapezoid has bases that measure 10 cm and 6 cm. The height of the figure is 15 cm. What is the area of the trapezoid?
What is prosocial behavior? a. Helping just to help out, with no other reason. b. Being a loner and having few friends. c. Being sociable and having lots
Find the equation of the line that is perpendicular to the line 4x + 2y = 1 and passes through the point (−4, 3).
Plz help:) true or false: there are over six different shape patterns for muscle fibers in the human body.
What is an example from history of early hydroponics?
Please help and show the work tysm ( a and b)
A population of bacteria is growing at a rate of9.25% per hour. If the population starts at 320,what is the population three hours later?​
PLEASE WALK ME THROUGH THIS!!!?? The red carnations sold for 50 cents a bunch and the white carnations sold for 40 cents a bunch. Mike bought 27 bunches for $12
The _______ (right, left) side of the ______ (cerebrum, spinal cord, cerebellum) controls the right side of the body.