String Formatting

  • + 0 comments

    it is used beacuse print(hex(14).upper()) --> returns 0XE

    and in the output we don't need 0X

    so by using list slicing [2:] we get E, thats what is needed.