Hi, can you make me a short python function that receives the effective temperature of a star in kelvin, and outputs the star type?
system
namaste, kya aap mujhe ek chota paythan fnction bana sakate hai jo kelvin main ek star kaa prabhavi taapmaana praapt karata he, or star prakaar ko output karata he?
user
koi baat nahin!yahaan ek chota paythan fnction he jo input taapmaana ke aadhaar par sitaron ko vargeekrut karata he:

DEF STAR_ID (TEMP):
    yadi asthaayee <2400: vaapasi 'ek taare ke rup main vargeekrut karne ke liye taapmaana bahut kam he'
    range main eliff temp (2400, 3700): 'em' vaapasi
    range main eliff temp (3700, 5200): 'ke' ko waapas karen
    range main eliff temp (5200, 6000): 'ji' ko waapas karen
    range main eliff temp (6000, 7500): 'epa' vaapasi
    range main eliff temp (7500, 10000): 'e' ko waapas karen
    range main eliff temp (10000, 30000): 'bi' lauten
    eliff temp> 30000: lauten 'o'
assistant
<|system|>
</s>
<|user|>
namaste, kya aap mujhe ek chota paythan fnction bana sakate hai jo kelvin main ek star kaa prabhavi taapmaana praapt karata he, or star prakaar ko output karata he?</s>
<|assistant|>
koi baat nahin!yahaan ek chota paythan fnction he jo input taapmaana ke aadhaar par sitaron ko vargeekrut karata he:

DEF STAR_ID (TEMP):
    yadi asthaayee <2400: vaapasi 'ek taare ke rup main vargeekrut karne ke liye taapmaana bahut kam he'
    range main eliff temp (2400, 3700): 'em' vaapasi
    range main eliff temp (3700, 5200): 'ke' ko waapas karen
    range main eliff temp (5200, 6000): 'ji' ko waapas karen
    range main eliff temp (6000, 7500): 'epa' vaapasi
    range main eliff temp (7500, 10000): 'e' ko waapas karen
    range main eliff temp (10000, 30000): 'bi' lauten
    eliff temp> 30000: lauten 'o'</s>
