Respuesta :

ijeggs

Answer:

intNum = int(input("Enter an Integer "))

for i in range(1,intNum):

   print(i)

Explanation:

Firstly and integer variable intNum is declared. Using Python's input function, we prompt the user to enter a value and assign it to intNum

Then we use the range function to iterate from the integer 1 up to but not including intNum and print out the values.

see sample code and output attached

Ver imagen ijeggs

The code for printing the one number per line is,

#Prompt the user to enter the input.

num_str = input ("Input an int: ")

#Run the loop from 1 to (num_str - 1).

for k in range(1, num_str):

#Display the value of k.

 print k

Learn More:https://brainly.com/question/17172273