Hexadecimal example

PHOTO EMBED

Tue Mar 16 2021 20:45:45 GMT+0000 (Coordinated Universal Time)

Saved by @fre_apples #python

#How would you express the hexadecimal value a5 as a base-16 integer constant in Python?
0xa5
#Explanation base-16 is x
# integer is 0 and a5 is our value 
#Notice that binary and hexadecimal use prefixes to identify the number system. All integer #prefixes are in the form 0?, in which you replace ? with a character that refers to the number #system:

# b: binary (base 2)
# o: octal (base 8)
# d: decimal (base 10)
# x: hexadecimal (base 16)
content_copyCOPY