def min_max_temp(temp: str, unit: str = '<STR_LIT:C>') -> str:
if not temp or len(temp) < <NUM_LIT:7>:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>if temp[:<NUM_LIT:2>] == '<STR_LIT>':<EOL><INDENT>temp_type = '<STR_LIT>'<EOL><DEDENT>elif temp[:<NUM_LIT:2>] == '<STR_LIT>':<EOL><INDENT>temp_type = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>temp = temp[<NUM_LIT:2>:].replace('<STR_LIT:M>', '<STR_LIT:->').replace('<STR_LIT>', '<STR_LIT>').split('<STR_LIT:/>')  <EOL>if len(temp[<NUM_LIT:1>]) > <NUM_LIT:2>:<EOL><INDENT>temp[<NUM_LIT:1>] = temp[<NUM_LIT:1>][:<NUM_LIT:2>] + '<STR_LIT:->' + temp[<NUM_LIT:1>][<NUM_LIT:2>:]  <EOL><DEDENT>temp_value = temperature(core.make_number(temp[<NUM_LIT:0>]), unit)<EOL>return f'<STR_LIT>'<EOL>
Format the Min and Max temp elemets into a readable string

Ex: Maximum temperature of 23°C (73°F) at 18-15:00Z