Am new to python, and am struggling to combine bits of theory I have learnt together, For Loops, Ord() and Appending.
I am looking to create a for loop and print a string of unicode numbers for a word.
For example:
word=aaaaa
I want it to print
[97, 97, 97, 97, 97]
where 97 is the unicode number for a.
im currently working with
word=aaaaa
unicode=[]
for ___ in range(len(word)):
unicode.append(____)
print(unicode)
my main struggle is filling out these blanks. ive played around with ord() and char, but cant seem to get the function to print it successfully but
any help would be appreciated.