Python program for identifying cellphone numbers based on the first four digits : cellnum = (input("Enter your 11-digit cellphone number with no spaces or dashes: "))
n1 = cellnum[:4]
if n1 == "0917" or n1 == "0916":
  print(cellnum, "is Globe")
elif n1 == "0935":
  print(cellnum, "is TM")
elif n1 == "0918" or n1 == "0910":
  print(cellnum, "is Smart")
elif n1 == "0922" or n1 == "0923":
  print(cellnum, "is Sun")
else:
  print("~unknown provider~ :(")