amount = int(input("Enter amount: "))
if amount < 1000:
discount = amount*0.05
print("Discount", discount)
else:
discount = amount*0.10
print("Discount", discount)
print("Net payable:", amount-discount)
There isn't anything particularly wrong with the code itself from what I can see unless you aren't using white space. Something that could be wrong is that you're not actually editing a python file. From what you've said do you happen to be in the python IDLE shell?