def encoder_type(encode):
 return {'0': '', '1': 'shikata_ga_nai', '2': '', '3': 'MULTIENCODE', '4': 'BACKDOOR'}.get(encode, 'ERROR')

def encoder_type ( encode ) : return { '0' : '' , '1' : 'shikata_ga_nai' , '2' : '' , '3' : 'MULTIENCODE' , '4' : 'BACKDOOR' } . get ( encode , 'ERROR' )
takes the value sent from the user encoding menu and returns the actual value to be used .