Write a Python program that askes the user to enter a number.Then the program prints numbers that ranges between 1 and thechosen number. Furthermore, the program precedes each number by aminus sign (-) if the number is odd and precedes the number by aplus (+) sign if the number is even.
For example: if the user enters the number ten (10) then theprogram prints the following: (notice 10 is included)
Enter the ending number: 10
-1
+2
-3
+4
-5
+6
-7
+8
-9
+10
Expert Answer
Answer to Write a Python program that askes the user to enter a number. Then the program prints numbers that ranges between 1 and …