def temperature(header: str, temp: Number, unit: str = '<STR_LIT:C>') -> str:
if not (temp and temp.value):<EOL><INDENT>return header + '<STR_LIT>'<EOL><DEDENT>if unit in SPOKEN_UNITS:<EOL><INDENT>unit = SPOKEN_UNITS[unit]<EOL><DEDENT>use_s = '<STR_LIT>' if temp.spoken in ('<STR_LIT>', '<STR_LIT>') else '<STR_LIT:s>'<EOL>return '<STR_LIT:U+0020>'.join((header, temp.spoken, '<STR_LIT>' + use_s, unit))<EOL>
Format temperature details into a spoken word string