Remove unnecessary file
This commit is contained in:
parent
eb950ab75c
commit
385b4ba222
19
ccipher.py
19
ccipher.py
|
@ -1,19 +0,0 @@
|
|||
test_str = "abc"
|
||||
|
||||
bytes_lst = []
|
||||
for item in test_str:
|
||||
bytes_lst.append(bytes(item,'utf-8'))
|
||||
print("As bytes, the string is:")
|
||||
print(bytes_lst)
|
||||
|
||||
encoded_lst = []
|
||||
for item in test_str:
|
||||
encoded_lst.append(item.encode())
|
||||
print("Encoding the characters in the string also gives:")
|
||||
print(encoded_lst)
|
||||
|
||||
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)
|
Loading…
Reference in New Issue