All items : Member in « List « Python Tutorial






numList = [2000, 2003, 2005, 2006]

for x in numList:
    print x+1








7.18.Member in
7.18.1.Check a user name and PIN code
7.18.2.All items
7.18.3.For each item in a list
7.18.4.Membership ( in, not in )