hexadecimal = 0
while hexadecimal_ != '000':
if hexadecimal_ == '000':
print("End of Program")
else:
hexadecimal_ = input("Enter Hexadecimal: (0-7F) (Enter '000' to erminate program)")
if hexadecimal_ == '0':
print("(NULL)")
elif hexadecimal_ == '1':
print("(Start of Header)")
elif hexadecimal_ == '2':
print("(Start of Text)")
I'm only in high school and started learning python about 2 weeks ago, and was wondering how I'd be able to run this program (which translates hexadecimal into characters) and insert a number (e.g 61
) and it would be inserted into a list (translated) much like .append
but it would be hidden until I ended the program.
Being able to view the list once the program ended or perhaps during the program. If possible is the list able to be a single line (e.g. If I typed 48(H) 49(I) 20(space) 57(W) 41(A) 4C(L) 4C(L)
and instead of [H, I, (space), W , A , L, L]
it would come out as HI(space)WALL
)?
Thank you for your time.