<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Stellar Classification
Background
The
Harvard Spectral Classification system for stars
classifies stars  based on their spectral type - where the type of a star is designated as a letter that corresponds to a given temperature range (since different temperatures correspond to different spectra!). 
Below there is a list of temperatures in Kelvin of a stellar cluster. 
Using the table linked from the above Wikipedia page, let's classify each of the stars in our temperature list.
Step1:  Using if-elif for discrete classification
This problem will use elif statements, the useful sibling of if and else, it basically extends your if statements to test multiple situations.
In our current situation, where each star will have exactly one spectral type, elif will really come through to make our if statements more efficient.
Unlike using many if statements, elif only executes if no previous statements have been deemed True.
This is nice, especially if we can anticipate which scenarios are most probable. 
Let's start with a simple classification problem to get into the mindset of if-elif-else logic.
We want to classify if a random number n is between 0 and 100, 101 and 149, or 150 to infinity. 
This could be useful if, for example, we wanted to classify a person's IQ score.
Fill in the if-elif-else statements below so that our number, n, will be classified.
Use a print() statement to print out n and its classification (make sure you are descriptive!)
You can use the following template
Step2:  Test your statement a few times so that you see if it works for various numbers.
Every time you run the cell, a new random number will be chosen, but you can also set it to make sure that the code works correctly.
Just comment (#) before the random_number() function.
Make sure to also test the boundary numbers, as they may act odd if there is a precarious &lt;=.
The loop
We have a list of stellar classifications above. 
Our new classifier will be a lot like the number classifier, but you will need to use
the stellar classification boundaries in Wikipedia's table
instead of our previous boundaries.
Another thing you will need to do is make a loop so that each star in temp is classified within one cell!
You can do this with a while-loop, using a dummy index that goes up to len(temp).
Construct a loop such that, for each temperature in temp, you will print out the star's temperature and classification.
<ASSISTANT_TASK:>
Python Code:
# These are your stellar temperatures, you're welcome!
temp = [5809, 16589, 4698, 1869, 37809, 8634]
Explanation: Stellar Classification
Background
The
Harvard Spectral Classification system for stars
classifies stars  based on their spectral type - where the type of a star is designated as a letter that corresponds to a given temperature range (since different temperatures correspond to different spectra!). 
Below there is a list of temperatures in Kelvin of a stellar cluster. 
Using the table linked from the above Wikipedia page, let's classify each of the stars in our temperature list.
End of explanation
# Fill in the parentheses. Don't forget indentation!
n = random_number(50,250) # this should be given!
if ():
    #print statement here
elif ():
    #print statement here
else:
    #print statement here
Explanation: Using if-elif for discrete classification
This problem will use elif statements, the useful sibling of if and else, it basically extends your if statements to test multiple situations.
In our current situation, where each star will have exactly one spectral type, elif will really come through to make our if statements more efficient.
Unlike using many if statements, elif only executes if no previous statements have been deemed True.
This is nice, especially if we can anticipate which scenarios are most probable. 
Let's start with a simple classification problem to get into the mindset of if-elif-else logic.
We want to classify if a random number n is between 0 and 100, 101 and 149, or 150 to infinity. 
This could be useful if, for example, we wanted to classify a person's IQ score.
Fill in the if-elif-else statements below so that our number, n, will be classified.
Use a print() statement to print out n and its classification (make sure you are descriptive!)
You can use the following template: print(n, 'your description here')
End of explanation
# Define your loop here
Explanation: Test your statement a few times so that you see if it works for various numbers.
Every time you run the cell, a new random number will be chosen, but you can also set it to make sure that the code works correctly.
Just comment (#) before the random_number() function.
Make sure to also test the boundary numbers, as they may act odd if there is a precarious &lt;=.
The loop
We have a list of stellar classifications above. 
Our new classifier will be a lot like the number classifier, but you will need to use
the stellar classification boundaries in Wikipedia's table
instead of our previous boundaries.
Another thing you will need to do is make a loop so that each star in temp is classified within one cell!
You can do this with a while-loop, using a dummy index that goes up to len(temp).
Construct a loop such that, for each temperature in temp, you will print out the star's temperature and classification.
End of explanation
<END_TASK>