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

2 (3b + 8) = 67 Solve !
Pablo will take the 11:43 AM train to San Diego. The train is estimated to arrive in San Diego in 3 hours 45 minutes. What is the estimated arrival time?
Most people learn about jobs through ________________, interacting with others to exchange information and develop professional or social contacts.
the wavelength of the sound wave of 15 hz, frequency is 0.0022 m. what is its speed?​
What was it like (the atmosphere) in America at the time of the Transcendentalists?​
if it cost $25.90 to make six servings of guacamole how many dollars would it cost to make one serving of guacamole
Doctors recommend the people drink 64 ounces of water per day how much water in milliliters do doctors recommend people drink to the nearest tenth
what explanation does paris give friar laurence for the rushed marriage?
What characterizes Beowulf as an epic poem?
A political polling company wants to use census data to collect information on voters in a city by neighborhood. Based on the types of information collected in