My Python Quiz

The ultimate place to learn Python!

Question #47: What gets printed?

names1 = ['Amir', 'Barry', 'Chales', 'Dao']

if 'amir' in names1:
    print(1)
else:
    print(2)