def webattack_vector(attack_vector):
 return {'1': 'java', '2': 'browser', '3': 'harvester', '4': 'tabnapping', '5': 'webjacking', '6': 'multiattack', '7': 'fsattack'}.get(attack_vector, 'ERROR')

def webattack_vector ( attack_vector ) : return { '1' : 'java' , '2' : 'browser' , '3' : 'harvester' , '4' : 'tabnapping' , '5' : 'webjacking' , '6' : 'multiattack' , '7' : 'fsattack' } . get ( attack_vector , 'ERROR' )
receives the input given by the user from set .