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

1 Answer

1 vote

Answer:

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

Step-by-step 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.

User Phuc Tran
by
4.3k points