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

Which type of consumers is the most stable in an ever changing environment? vegetarians herbivores carnivores omnivores
one year ago Which of the following historians has organized her study of the past based on the category "theme"?
What two technological advancements led to New York City being able to produce taller buildings in order to service the growing population?
Your parents are considering renting you an apartment instead of paying room and board at your college. The month-to-month contract is $539.00/month and the ann
14.2 is 35.5% of what number W
Workloads in a child care facility should be
How do volcanoes form?
A Congressional session is when members of congress come together to perform their legislative duties. How many Congressional sessions are there per two-year te
Where is the magnetic field of any magnet the weakest? A. slightly left and slightly right of the center B. at the poles C. halfway between the poles D. halfwa
Which one of these facts about light are true? A) Light rays cannot stop until a mass is able to receive the light ray. B) Light has a indefinite source.