158k views
5 votes
in python Write a program that prompts the user to enter a hex character and displays its corresponding decimal integer python

1 Answer

2 votes

Answer:

Here is some that I know. The code is below:

#accepting input hex_num=input() #checking if it is a number if(hex_num>='0' and hex_num<='9'): #printing that number print(hex_num) #checking

Step-by-step explanation:

I hope this helps

User BJ Anderson
by
7.1k points