# Author: James Tam # Version: November, 2013 # Learning concepts: searching strings in conjunction with the # 'in' operator userNames = "aaa abc username xxx" userName = input ("User name: ") if userName in userNames: print("User name already taken, enter a new one")