The less than operator is not working correctly for me:
port = raw_input("Enter Port: ")
if port <= 65535:
print("Valid Port")
else:
print("Port Invalid")
However, whenever I type in a port from 66 to 99 in ANY ten or hundred for example 166 or 766 or 889 it will be invalid, but anything below will be fine. It is like it is only registering/seeing the "65" part. I have tried without the ""
around the 65535 but that always returns invalid.
Alright, got it sorted, I did not know that it returned as a string. Although, I am kind of disappointed that I was ripped apart because of this and I am not up to the "high brow" standards of all of the people with years of experience.