Commpleted checkpoint 1.

I created a function called numerify that takes an
string and outputs the numeric values of the bytes
that represent that string with UTF-08 encoding.
This commit is contained in:
Cory 2024-05-07 12:16:03 -04:00
parent 61ce9c3605
commit 09fd746bbc
1 changed files with 9 additions and 1 deletions

View File

@ -16,4 +16,12 @@ hex_lst=[]
for item in encoded_lst:
hex_lst.append(list(item)[0])
print("The hex values associated with those bytes is:")
print(hex_lst)
print(hex_lst)
# Checkpoint 1
def numerify(message):
hex_values=[]
for item in message:
hex_values.append(item.encode()[0])
return hex_values
print(numerify('abc'))