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:
10
ccipher.py
10
ccipher.py
@@ -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'))
|
||||
Reference in New Issue
Block a user