def make_env_key ( app_name , key ) : key = key . replace ( '-' , '_' ) . replace ( ' ' , '_' ) return str ( "_" . join ( ( x . upper ( ) for x in ( app_name , key ) ) ) )
how to create a concat key in python
Creates an environment key - equivalent for the given key
def make_env_key(app_name, key):
    """Creates an environment key-equivalent for the given key"""
    key = key.replace('-', '_').replace(' ', '_')
    return str("_".join((x.upper() for x in (app_name, key))))