I was trying to convert a string list to integer in python as follows:
plain = input("string >> ")
string_list = list(plain)
print(string_list)
ASCII = []
for x in range (0, len(string_list)):
ASCII.append([ord(string_list[x])])
print(ASCII)
for x in range (0, len(ASCII)):
print(ASCII[x])
integer_ASCII = type(int(ASCII[x]))
print(integer_ASCII, end=", ")
but I get this error:
TypeError: int() argument must be a string, a bytes-like object or a number, not 'list'
So is there any other way to convert a string to integer.