Ask Question

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.

+2
Answers (1)
  1. 4 July, 02:41
    0
    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)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “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. ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers