generated from mwc/lab_encryption
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:
parent
61ce9c3605
commit
09fd746bbc
|
@ -17,3 +17,11 @@ for item in encoded_lst:
|
|||
hex_lst.append(list(item)[0])
|
||||
print("The hex values associated with those bytes is:")
|
||||
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'))
|
Loading…
Reference in New Issue