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

HELP ILL GIVE BRAINLIEST
Name the following alkane molecule: Br CI A. 6-bromo-2-chlorodecane B. 2-chloro-6-bromodecane C. 5-bromo-9-chlorodecane
All but which of the following are common medical complications arising from bulimia?
What is the value of a?
15. The height and yolume of a cylinder are 4cm and 616cm respectively. Calculate the diameter of the base. (take t = 27 쪽 A. 7cm B. 154cm C. 14cm D. 64cm​
HELP PLEASE !! REAL ANSWER ONLY find the surface area of the cylinder round to the nearest tenth ​
Which of the following statements best describes the “what” of the science of the teaching reading?
Which event supports the theme “Wartime can bring out the worst in people”? Miep and Mr. Kraler bring food, books, and newspapers to those in hiding. Anne share
Kane's Furniture Store advertised a table at ​9% discount. The original selling price was ​$109​, and the sale price was ​$100. Was the sale price consistent wi
-p/3-8=3 what is the variable​