Hex to ASCII

    0

    0

    Mahendra Kumar

    beginnerencoding

    Python Program to Convert Hex to ASCII

    # take hexadecimal string
    hex_str = "0x68656c6c6f"[2:]
    # convert hex string to ASCII string
    bytes_array = bytes.fromhex(hex_str)
    ascii_str = bytes_array.decode()
    # printing ASCII string
    print('ASCII String:', ascii_str)
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.