googleboy59
googleboy59 googleboy59
  • 13-11-2020
  • Computers and Technology
contestada

Python please help.

Why I’m i getting this error

Python please help Why Im i getting this error class=

Respuesta :

Cytokine
Cytokine Cytokine
  • 13-11-2020

So, age is a of type string when it should be of type int.

def main():

   age = int(input("How old are you? "))

   if age >= 13:

   #the rest of your code.

Strings cannot be greater than another string only integers and other number based data types. Also, you should change the list variable as I mentioned on the earlier question. Best of luck.

Answer Link

Otras preguntas

Find the error Jacob is finding the slope of the line that passes through x(0,2) and y(4,3).circle his mistake and correct it.
The perimeter of a parallelogram is 46in. If the length of one side is 14in., what is the length of a side adjacent to it?
Why is it necessary to use the same restriction enzyme to cut 2 pieces of DNA that are to be joined together?
What is Neons group and periodic number?
of the400 doctors who attended a conference, 240 practiced family medicine and 130 were from countries outside the United States. One-third of the family medici
How are radioactive probes useful in DNA fingerprinting
Why is it necessary to use the same restriction enzyme to cut 2 pieces of DNA that are to be joined together?
Why is it necessary to use the same restriction enzyme to cut 2 pieces of DNA that are to be joined together?
How are radioactive probes useful in DNA fingerprinting
How are radioactive probes useful in DNA fingerprinting