测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A68425. 运行下面的代码,程序输出的结果是?names1 = ['Amir','Bala','Chales']

单选题

题目描述

运行下面的代码,程序输出的结果是?

names1 = ['Amir','Bala','Chales']
if 'amir' in names1:
    print(1)
else:
    print(2)

选项(单选)