1def convert_to_hex(number:int):
2 if number == None:
3 return "Invalid input"
4 elif type(number) == float:
5 return "Float not handled"
6 elif type(number) == str:
7 temp = int(number)
8 return format(temp, "02x")
9 return format(number, '02x')
10print(convert_to_hex(30))
11print(convert_to_hex(None))
12print(convert_to_hex("7"))
13print(convert_to_hex(7.09))