logo

Crowdly

What will the output be after executing the following code? fruits = ["apples"...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

What will the output be after executing the following code?

fruits = ["apples","bananas"]

for i in range(1,2):

    for fruit in fruits:

        print(i, fruit)

A.

apples

bananas

B. error

C.

1 apples

1 bananas

D.

1 apples

2 bananas

More questions like this

Want instant access to all verified answers on moodle.ulsachihuahua.edu.mx?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!