list_word = ["hello", "bye"]
list_ord = []
def convert_to_ascii(text):
return " ".join(str(ord(char)) for char in text)
for i in list_word:
list_ord.append(convert_to_ascii(i))
print(list_ord)
bGlzdF93b3JkID0gWyJoZWxsbyIsICJieWUiXQpsaXN0X29yZCA9IFtdCgoKZGVmIGNvbnZlcnRfdG9fYXNjaWkodGV4dCk6CiAgICByZXR1cm4gIiAiLmpvaW4oc3RyKG9yZChjaGFyKSkgZm9yIGNoYXIgaW4gdGV4dCkKCgpmb3IgaSBpbiBsaXN0X3dvcmQ6CiAgICBsaXN0X29yZC5hcHBlbmQoY29udmVydF90b19hc2NpaShpKSkKcHJpbnQobGlzdF9vcmQp