###5-6. Stages of Life: Write an if-elif-else chain that determines a person's stage of life . Set a value for the variable age, and then:
# If the person is less than 2 years old, print a message that the person is a baby .
# If the person is at least 2 years old but less than 4, print a message that the person is a toddler .
# If the person is at least 4 years old but less than 13, print a message that the person is a kid .
# If the person is at least 13 years old but less than 20, print a message that the person is a teenager .
# If the person is at least 20 years old but less than 65, print a message that the person is an adult .
# If the person is age 65 or older, print a message that the person is an elder .

import os,sys
age=68
if age < 2:
    print("the person is a baby")
elif age ==2 or age <4:
    print("the person is a toddler")
elif age==4 or age<13:
    print("he person is a kid")
elif age==13 or age <20:
    print("he person is a teenager")
elif age==20 or age<65:
    print("the person is an adult")
elif age>=65:
    print("the person is an elder")


###5-7. Favorite Fruit: Make a list of your favorite fruits, and then write a series of independent if statements that check for certain fruits in your list .
#            Make a list of your three favorite fruits and call it favorite_fruits .
#            Write five if statements . Each should check whether a certain kind of fruit is in your list . If the fruit is in your list, the if block should print a statement, such as You really like bananas!

favorite_fruits =["banana","guava","apple"]

if "guava" in favorite_fruits:
    print("Guava is my favourite fruit")
if "banana" in favorite_fruits:
    print("banana is my favourite fruit")
if "apple" in favorite_fruits:
    print("apple is my favourite fruit")
if "musk melon" in favorite_fruits:
    print("musk melon is my favourite fruit")
if "appricot" in favorite_fruits:
    print("Appricot is my favourite fruit")

###5-6. Stages of Life: Write an if-elif-else chain that determines a person's stage of life . Set a value for the variable age, and then:
# If the person is less than 2 years old, print a message that the person is a baby .
# If the person is at least 2 years old but less than 4, print a message that the person is a toddler .
# If the person is at least 4 years old but less than 13, print a message that the person is a kid .
# If the person is at least 13 years old but less than 20, print a message that the person is a teenager .
# If the person is at least 20 years old but less than 65, print a message that the person is an adult .
# If the person is age 65 or older, print a message that the person is an elder .

import os,sys
age=68
if age < 2:
    print("the person is a baby")
elif age ==2 or age <4:
    print("the person is a toddler")
elif age==4 or age<13:
    print("he person is a kid")
elif age==13 or age <20:
    print("he person is a teenager")
elif age==20 or age<65:
    print("the person is an adult")
elif age>=65:
    print("the person is an elder")


###5-7. Favorite Fruit: Make a list of your favorite fruits, and then write a series of independent if statements that check for certain fruits in your list .
#            Make a list of your three favorite fruits and call it favorite_fruits .
#            Write five if statements . Each should check whether a certain kind of fruit is in your list . If the fruit is in your list, the if block should print a statement, such as You really like bananas!

favorite_fruits =["banana","guava","apple"]

if "guava" in favorite_fruits:
    print("Guava is my favourite fruit")
if "banana" in favorite_fruits:
    print("banana is my favourite fruit")
if "apple" in favorite_fruits:
    print("apple is my favourite fruit")
if "musk melon" in favorite_fruits:
    print("musk melon is my favourite fruit")
if "appricot" in favorite_fruits:
    print("Appricot is my favourite fruit")

###5-6. Stages of Life: Write an if-elif-else chain that determines a person's stage of life . Set a value for the variable age, and then: # If the person is less than 2 years old, print a message that the person is a baby . # If the person is at least 2 years old but less than 4, print a message that the person is a toddler . # If the person is at least 4 years old but less than 13, print a message that the person is a kid . # If the person is at least 13 years old but less than 20, print a message that the person is a teenager . # If the person is at least 20 years old but less than 65, print a message that the person is an adult . # If the person is age 65 or older, print a message that the person is an elder . ###5-7. Favorite Fruit: Make a list of your favorite fruits, and then write a series of independent if statements that check for certain fruits in your list . #            Make a list of your three favorite fruits and call it favorite_fruits . #            Write five if statements . Each should check whether a certain kind of fruit is in your list . If the fruit is in your list, the if block should print a statement, such as You really like bananas!