So i wrote a code that takes a string and print out the ascii code but i have this problem that i'm printing out the ascii for every letter in a for loop and in the end i want it to be a string of a number.
This is the code:
getname='test'
for letter in getname:
print ord(letter)
And the output is:
116
101
115
116
How can i take the for loop output and make it a string? in the end i want it to be like this:
116101115116
Thanks.
0for all fixed length.