Here you may get a python program to ascertain word variety.
A number is alleged to be a word if it’s up to its reverse. as an example 121, 555, etc are word whereas 124, 367, etc don’t seem to be.
Python Program to Check Palindrome Number
num = int(input("enter a decimal number: "))
print("\nbinary form is ", bin(num))
print("octal form is ", oct(num))
print("hexadecimal form is ", hex(num))
Output
enter a decimal number: 11
binary form is 0b1011
octal form is 0o13
hexadecimal form is 0xb
Comment below if you’ve got any queries concerning python word variety program.