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

Your body type is encoded in your DNA. What does this mean? A) Your body type is determined by the genes you inherit from your parents B) Your body type is dete
V = √ 20 L to estimate the speed of a car, v , in miles per hour, based on the length, L , in feet, of its skid marks when suddenly braking on a dry, asphalt ro
what are the two supporting evidence of seafloor spreading theory?
Which graph represents y=⌈x⌉ over the domain −4≤x≤−1 ?
If the scientific notation is 3.042x10^2 what would it looked like in standard form? please help.
If 6 sandwich rolls cost $1.08, How much will 18 rolls cost ?
Determine the measure of the unknown angle in the triangle.
Diffusion takes place
Please select the word from the list that best fits the definition reliant on one another sickle rubber free port interdependent rice
Which of the following is a better buy? 7 tickets for $22.75 10 tickets for $31.50