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

Porfavor ayudenme en este problema, denle click para ver la imagen.Please help me with this problem, click the image to see it.
Which set of line segments could create a right triangle? 24, 30, 35 12, 18, 30 18, 24, 30 18, 24, 35​
When her older sister died, cokie roberts (see personal insights 14.4 in the eighth edition of death & dying, life & living) wrote that?
Convert 1.8 quarts to cubic centimeters.
Find the vertical and horizontal asymptotes, domain, range, and roots of f(x)=−1x−3+2
What principles of government are in the Declaration of Independence?
What is the equation of the line that passes through the point (3,-6) and has a slope of −3?
We must do something to help the bee population win the battle against a colony collapse or the world faces horrendous consequences. Bees are important to our f
Aaron has 5 cups of dough to make dumplings. if he uses 1/2 cup o dough for each dumpling, how many dumplings can Aaron make?
What were the 8 weaknesses of the Articles of Confederation?