This script takes whatever is inputted and formats it into a "1/1" type format.
It works with the first two elif statements, but when moving onto the third it still assigns the 2/ infront of the numbers. It's supposed to jump to 3/ and 4/ as you see below.
Your help is greatly appreciated.
import re
port = input("Enter port number:")
if bool(re.search('\/', port)) == True:
    p = port
elif int(port) <= 48:
    port = "1/" + str(port)
elif int(port) >= 53 <= 100:
    port = "2/" + str(port)
elif int(port) >= 105 <= 152:
    port = "3/" + str(port)
elif int(port) >= 157 <= 204:
    port = "4/" + str(port)
print(port)
 
     
     
    