dayasrah dayasrah
  • 02-11-2020
  • Computers and Technology
contestada

in python Write a program that prompts the user to enter a hex character and displays its corresponding decimal integer python

Respuesta :

jonasunderwood
jonasunderwood jonasunderwood
  • 02-11-2020

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

Explanation:

I hope this helps

Answer Link

Otras preguntas

the half-life of strontium-90 is approximately 29 years. how much of a 500 g sample of strontium-90 will remain after 58 years​
What type of poetry is “The Bat-Poet”?
This one as well. Thanks! #22 a & b ​
What caused the economic panic’s in the 1800s
How much did the national debt increase during World War II? A) 5 percent B) 60 percent C) 100 percent D) 500 percent
What is the equation of the circle with center (-1,-2) and passes through the point (6,4)? Which of the following points is also located on the circle? A. (6,-6
The bottom of a 30 foot ladder is 7.5 feet from the bottom of a wall of a building. Explain how you can find the height at which the ladder touches the wall. Th
If the sides of your equilateral triangle are each 3 inches and you are wanting to scale to the larger triangle then... would you multiply the 3 by a whole num
Phillip walks 2/7 each morning and 4/7 mile each evening how far does Phillip walk each day
define dml and ddl with examples​