Ask Question

For state in ["not pinin'", "no more", "bereft of lift"]: print ("This parrot is " + state)

+1
Answers (1)
  1. 7 June, 06:12
    0
    The Output to the given python code as follows:

    Output:

    This parrot is not pinin' #print first value.

    This parrot is no more #print second value

    This parrot is bereft of lift #print third value

    Explanation:

    In the given python code we use the "for in" loop which is similar to for each loop. This loop contains keys and iterates over iterators with a range.

    In this loop, we define a variable that is a state and assign three values that are "not pinin', no more, and bereft of lift ". Inside a loop, we use print function inside this function we print the message that is "This parrot is " and prints state values.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “For state in ["not pinin'", "no more", "bereft of lift"]: print ("This parrot is " + state) ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers