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

**How do you factor -4x²+14x-6?
On April 4, 1967 while in New York City, King delivered a speech titled? a. Beyond Vietnam b. I Have a Dream c. I've Been to the Mountaintop d. How Long, Not Lo
Which of the following is considered a secondary source? A. a news magazine article about migrant farm workers in California B. a collection of interviews with
Earth’s inner core is solid because of A. the composition of its rock. B. its great diameter. C. extreme cold. D. immense pressure
Synonyms are words that are A. similar in meaning. B. pronounced the same. C. defined in a thesaurus. D. opposite in meaning.
Which of the following did NOT occur during the Cold War? A. a space race B. an arms race C. a series of proxy wars D. direct conflict between the two global
How do you simplify 2xy+3ab-4xy-9ab. Show how you did it
School taxes for a local district are 2.5% of a household's income. The Smith household earns $80,000 per year. How much do the Smiths pay in school taxes per y
How did King's position on the Vietnam War make him less popular with mainstream Americans ? a. his anti-war stance made him appear unpatriotic b. his pro-war p
how should I study for my upcoming spelling bee?