What will be the output of the following Python code? veggies = ['carrot', 'broccoli', 'potato', 'asparagus']veggies.insert(veggies.index('broccoli'), 'celery')print(veggies) ( )
A: [‘carrot’, ‘celery’, ‘broccoli’, ‘potato’, ‘asparagus’]
B: [‘carrot’, ‘celery’, ‘potato’, ‘asparagus’]
C: [‘carrot’, ‘broccoli’, ‘celery’, ‘potato’, ‘asparagus’]
D: [‘celery’, ‘carrot’, ‘broccoli’, ‘potato’, ‘asparagus’]
A: [‘carrot’, ‘celery’, ‘broccoli’, ‘potato’, ‘asparagus’]
B: [‘carrot’, ‘celery’, ‘potato’, ‘asparagus’]
C: [‘carrot’, ‘broccoli’, ‘celery’, ‘potato’, ‘asparagus’]
D: [‘celery’, ‘carrot’, ‘broccoli’, ‘potato’, ‘asparagus’]
举一反三
- A—potato B—carrot C—onion D—garlic E—ginger F—tomato G—cabbage H—cucumber I—corn J—pepper K—broccoli L—mushroom M—soy Bean N—celery O—pea P—eggplant Q—pumpkin R—bamboo Shoot S—water Chestnut T—lotus Root ( )番茄 ( )莲藕
- A—potato B—carrot C—onion D—garlic E—ginger F—tomato G—cabbage H—cucumber I—corn J—pepper K—broccoli L—mushroom M—soy Bean N—celery O—pea P—eggplant Q—pumpkin R—bamboo Shoot S—water Chestnut T—lotus Root ( )豌豆 ( )卷心菜
- A—potato B—carrot C—onion D—garlic E—ginger F—tomato G—cabbage H—cucumber I—corn J—pepper K—broccoli L—mushroom M—soy Bean N—celery O—pea P—eggplant Q—pumpkin R—bamboo Shoot S—water Chestnut T—lotus Root ( )蘑菇 ( )胡萝卜
- A—potato B—carrot C—onion D—garlic E—ginger F—tomato G—cabbage H—cucumber I—corn J—pepper K—broccoli L—mushroom M—soy Bean N—celery O—pea P—eggplant Q—pumpkin R—bamboo Shoot S—water Chestnut T—lotus Root ( )南瓜 ( )生姜
- A—potato B—carrot C—onion D—garlic E—ginger F—tomato G—cabbage H—cucumber I—corn J—pepper K—broccoli L—mushroom M—soy Bean N—celery O—pea P—eggplant Q—pumpkin R—bamboo Shoot S—water Chestnut T—lotus Root ( )玉米 ( )辣椒