Ask Question
31 May, 02:53

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

+4
Answers (1)
  1. 31 May, 05:33
    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?
Get an answer to your question ✅ “For state in ["not pinin'", "no more", "bereft of lift"]: print ("This parrot is " + state) ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers