troubleshooting Question

Need help with simply python code

Avatar of Jake
Jake asked on
Python* Coding
8 Comments1 Solution82 ViewsLast Modified:
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.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 8 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros