I need to write an algorithm that can print a range of 2 given numbers from the user and exclude them.
This is the code that I have so far yet this will exclude only the second number.
x = int(input("Input the first number for the range: "))
n = int(input("Input the second number for the range: "))
if (x and n != 0):
for num in range(x, n):
print(num)
How can I make it exclude the first number, too?