Write a python script to store a hexadecimal number 2F in a variable and print it in octal format.

 #. Write a python script to store a hexadecimal number 2F in a variable and print it in

#octal format.
a=0x2F
print(oct(a))

Comments

Popular posts from this blog

Write a python script to display the current date and time. First create variables to store date and time, then display date and time in proper format (like: 13-8-2022 and 9:00 PM """