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

What does it mean to describe a scientist as skeptical? Why is skepticism considered a valuable quality in a scientist?
what is the value the 1 in 214,278,216
slove the equation 2x^2(6y^3) (2x^2 y)
measure the amount of space an object takes up
What happens to water molecules during the boiling process?
In addition to carbon dioxide what is one of the products of respiration A sugar B oxygen C chlorophyll D energy
6. Describe the effects of air raids and bombings on London. What did people do?
Why are Americans considered to be an “ideologically homogeneous” people?
Which is a sentence fragment? A. This morning the sunrise was spectacular. B. We bought milk, bread, and eggs. C. A pencil, four sheets of paper, and a rule
whats 3/5 + 5/9 (fraction) and 4/7 - 2/3