The reason for the "doubling" up of your outputs is this section here
for floor in range (1, 3):
print("The Price is: 10,000.00")
if floor in range (4, 6):
print("The Price is: 8,000.00")
elif floor in range (7, 10):
print("The Price is: 7,000.00")
else:
print("We don't have any more floors")
Why are you overriding the value of
floor
that was input and putting it in a loop? I think that should read
if floor in range (1, 3):
print("The Price is: 10,000.00")
elif floor in range (4, 6):
print("The Price is: 8,000.00")
elif floor in range (7, 10):
print("The Price is: 7,000.00")
else:
print("We don't have any more floors")
I suspect that will also fix your vague description "and wrong results"