The function is not returning the correct values. Can you figure out why?

```python
get_planet_name(3) # should return 'Earth'
```

Difficulty: introductory

Starter code:

def get_planet_name(id):
	

Solutions:
def get_planet_name(id):
    return {
        1: "Mercury",
        2: "Venus",
        3: "Earth",
        4: "Mars",
        5: "Jupiter",
        6: "Saturn",
        7: "Uranus",
        8: "Neptune",
    }.get(id, None)

def get_planet_name(id):
    return{
        1: "Mercury",
        2: "Venus",
        3: "Earth",
        4: "Mars",
        5: "Jupiter",
        6: "Saturn",
        7: "Uranus",
        8: "Neptune",
    }.get(id)

def get_planet_name(id):
    planets = {
        1: "Mercury",
        2: "Venus",
        3: "Earth",
        4: "Mars",
        5: "Jupiter",
        6: "Saturn",
        7: "Uranus", 
        8: "Neptune",
    }
    return planets[id]

def get_planet_name(id):
    return ["Mercury","Venus","Earth","Mars","Jupiter","Saturn","Uranus","Neptune"][id-1]

def get_planet_name(id):

    switch = {
        1: "Mercury",
        2: "Venus",
        3: "Earth",
        4: "Mars",
        5: "Jupiter",
        6: "Saturn",
        7: "Uranus"  ,
        8: "Neptune"
    }
    
    return switch.get(id, "LOL");

def get_planet_name(id):
    name=""
    return{
        1:"Mercury",
        2:"Venus",
        3:"Earth",
        4:"Mars",
        5:"Jupiter",
        6:"Saturn",
        7:"Uranus" , 
        8:"Neptune"
       }[id]

def get_planet_name(id):
    return [0, "Mercury", "Venus", "Earth", "Mars", "Jupiter", "Saturn", "Uranus", "Neptune"][id]

def get_planet_name(id): # yea just do most things siplistic, I could think of elegant wasy to do this but ill never reuse it so
    # I do love case switch methods I am going to have to find the python eqiv
    name=""
    
    if id == 1:
        name = 'Mercury'  # the fire ball
    if id == 2:
        name = 'Venus'    # She is still hot
    if id == 3:
        name = 'Earth'    # the sea of stupidity
    if id == 4:
        name = 'Mars'     # why is it full of iron oxide if it supposidly never had oxygen
    if id == 5:
        name = 'Jupiter'  # no one is stupiter
    if id == 6:
        name = 'Saturn'   # where did all thise rings come from
    if id == 7:
        name = 'Uranus'   # Not mine
    if id == 8:
        name = 'Neptune'  # It's to cold for fish
    if id == 9:
        name = 'Pluto'    # becuse it has a core a dwarf planet is a planet dwarf people are people arent they
    
    return name #only because you asked nice

def get_planet_name(id):
    return ("Mercury", "Venus", "Earth", "Mars", "Jupiter", "Saturn", "Uranus",
        "Neptune")[id - 1]


get_planet_name=lambda id: ["Kypton","Mercury","Venus","Earth","Mars","Jupiter","Saturn","Uranus","Neptune"][id]

get_planet_name = (None, "Mercury", "Venus", "Earth", "Mars", "Jupiter", "Saturn", "Uranus", "Neptune").__getitem__

def get_planet_name(id):
    switcher = {
        1:"Mercury",
        2:"Venus",
        3:"Earth",
        4:"Mars",
        5:"Jupiter",
        6:"Saturn",
        7:"Uranus",  
        8:"Neptune"}
    return(switcher.get(id, "Invalid ID"))

def get_planet_name(id):
    if id == 1: return "Mercury"
    elif id == 2: return "Venus"
    elif id == 3: return "Earth"
    elif id == 4: return "Mars"
    elif id == 5: return "Jupiter"
    elif id == 6: return "Saturn"
    elif id == 7: return "Uranus"  
    elif id == 8: return "Neptune"
    else: raise Exception()

def get_planet_name(i):
    # hi my dear friends ))))
    return {
        1: "Mercury",  2: "Venus",
        3: "Earth",
        4: "Mars",     5: "Jupiter",
        6: "Saturn",
        7: "Uranus",   8: "Neptune"
        } [i]

get_planet_name = lambda i: ["Mercury","Venus","Earth","Mars","Jupiter","Saturn","Uranus","Neptune"].__getitem__(i-1)

def get_planet_name(id):
    solar_system = ['Mercury', 'Venus', 'Earth', 'Mars', 'Jupiter', 'Saturn', 'Uranus', 'Neptune']
    return solar_system[id - 1]

def get_planet_name(id):
    name=""
    if id == 1: name = "Mercury"
    elif id == 2: name = "Venus"
    elif id == 3: name = "Earth"
    elif id == 4: name = "Mars"
    elif id == 5: name = "Jupiter"
    elif id == 6: name = "Saturn"
    elif id == 7: name = "Uranus"  
    elif id == 8: name = "Neptune"
    return name

def get_planet_name(id):
    # This doesn't work; Fix it!
    name=""
    switch = {"1": "Mercury",
        "2": "Venus",
        "3": "Earth",
        "4": "Mars",
        "5": "Jupiter",
        "6": "Saturn",
        "7": "Uranus",
        "8": "Neptune"}
    return switch.get(str(id))
get_planet_name(1)

def get_planet_name(id):
    
    #switch-case statement doesn't work on python unlike java so convert it in dictionary
    switch = { 1:  "Mercury",
               2:  "Venus",
               3:  "Earth",
               4:  "Mars",
               5:  "Jupiter",
               6:  "Saturn",
               7:  "Uranus",
               8:  "Neptune"}
           # use .get() function to get the value of the input from user    
    return switch.get(id) 

def get_planet_name(id: int) -> str:
    """ Get planet name by given ID. """
    planets = {
        1: "Mercury",
        2: "Venus",
        3: "Earth",
        4: "Mars",
        5: "Jupiter",
        6: "Saturn",
        7: "Uranus",
        8: "Neptune"
    }
    return planets.get(id)

def get_planet_name(id):
    # This doesn't work; Fix it!
    name=[ "Mercury","Venus","Earth","Mars","Jupiter","Saturn","Uranus","Neptune"]
    return name[id-1];

def get_planet_name(id):
    planets = {
        1: "Mercury",
        2: "Venus",
        3: "Earth",
        4: "Mars",
        5: "Jupiter",
        6: "Saturn",
        7: "Uranus",
        8: "Neptune",
        9: "Pluto" #I mean, c'mon, let's be real
    }
    return planets.get(id)

def get_planet_name(i):
    names = ['Sun', 'Mercury', 'Venus', 'Earth', 'Mars', 'Jupiter', 'Saturn', 'Uranus', 'Neptune']
    return names[i]

def get_planet_name(id):
    return "Sun Mercury Venus Earth Mars Jupiter Saturn Uranus Neptune".split()[id]

def get_planet_name(id):
    # This doesn't work; Fix it!
#     name=""
    name =  {
         1: "Mercury",
         2: "Venus",
         3: "Earth",
         4: "Mars",
         5: "Jupiter",
         6: "Saturn",
         7: "Uranus", 
         8: "Neptune",
        }
    return name.get(id)

def get_planet_name(id):
    planets = [
        "Mercury", 
        "Venus",
        "Earth",
        "Mars", 
        "Jupiter", 
        "Saturn", 
        "Uranus", 
        "Neptune"
        ]
    name = ""
    if id - 1 < len(planets):
        return planets[id - 1]
    
    return name

def get_planet_name(id):
    # This doesn't work; Fix it!
    name = ('a',"Mercury","Venus", "Earth", "Mars","Jupiter","Saturn", "Uranus"  ,"Neptune")
    return name[id]

get_planet_name = {
        1: "Mercury",
        2: "Venus",
        3: "Earth",
        4: "Mars",
        5: "Jupiter",
        6: "Saturn",
        7: "Uranus",
        8: "Neptune"
        }.get

def get_planet_name(id):
    # This doesn't work; Fix it!
    name=""

    for idx, planete in [(1, "Mercury"), (2, "Venus"), (3, "Earth"), (4, "Mars"), (5, "Jupiter"), (6, "Saturn"), (7, "Uranus"), (8, "Neptune")]:
        if idx == id:
            return planete
    return 'ID not fund'    
    
    
    
    
    


def get_planet_name(id):
    planets = ["Mercury", "Venus", "Earth", "Mars", "Jupiter", "Saturn", "Uranus", "Neptune"]
    return planets[id-1]

def get_planet_name(id):
    d = {
        1:"Mercury",
        2:"Venus",
        3:"Earth",
        4:"Mars",
        5:"Jupiter",
        6:"Saturn",
        7:"Uranus",
        8:"Neptune",
        }
    return d.get(id, "Sorry, that's not a planet.")

def get_planet_name(id):
    database ={
         1: "Mercury",
         2: "Venus",
         3: "Earth",
         4: "Mars",
         5: "Jupiter",
         6: "Saturn",
         7: "Uranus",  
         8: "Neptune"
        }
    return database.get(id)

def get_planet_name(id):
    id_dict = {1: "Mercury",
               2: "Venus",
               3: "Earth",
               4: "Mars",
               5: "Jupiter",
               6: "Saturn",
               7: "Uranus",
               8: "Neptune"}
    for key in id_dict.keys():
        if key == id:
            return id_dict[key]

def get_planet_name(id:int) -> "Returns a Planet":
    p=["Mercury","Venus","Earth","Mars","Jupiter","Saturn","Uranus","Neptune"]
    return p[id-1]

def get_planet_name(id):
    """ This function returns planet`s name by id. """
    planet = {1: 'Mercury',
              2: 'Venus',
              3: 'Earth',
              4: 'Mars',
              5: 'Jupiter',
              6: 'Saturn',
              7: 'Uranus',
              8: 'Neptune'}
    for key, val in planet.items():
        if key == id:
            return val

def get_planet_name(id):
    # This doesn't work; Fix it!
    switch={
        1: "Mercury",
        2: "Venus",
        3: "Earth",
        4: "Mars",
        5: "Jupiter",
        6: "Saturn",
        7: "Uranus",
        8: "Neptune"
        }
    return switch.get(id, "Invalid Planet Selection")

def get_planet_name(id):
    planet_map = {1: "Mercury",
                  2: "Venus",
                  3: "Earth",
                  4: "Mars",
                  5: "Jupiter",
                  6: "Saturn",
                  7: "Uranus",
                  8: "Neptune"}
    return planet_map[id]

def get_planet_name(id):
    if id is 1:
        name = "Mercury"
        return name
    if id is 2:
        name = "Venus"
        return name
    if id is 3:
        name = "Earth"
        return name
    if id is 4:
        name = "Mars"
        return name
    if id is 5:
        name = "Jupiter"
        return name
    if id is 6:
        name = "Saturn"
        return name
    if id is 7:
        name = "Uranus"
        return name
    if id is 8:
        name = "Neptune"
        return name


def get_planet_name(id):
    # This doesn't work; Fix it!
  
    switch ={
         1: "Mercury",
         2: "Venus",
         3: "Earth",
         4: "Mars",
         5: "Jupiter",
         6: "Saturn",
         7: "Uranus" , 
         8: "Neptune"
    }
    return switch.get(id,"wrong walue")

def get_planet_name(id):
    # This doesn't work; Fix it!
    name=""
    dict_ = {
        1: "Mercury",
        2: "Venus",
        3: "Earth",
        4: "Mars",
        5: "Jupiter",
        6: "Saturn",
        7: "Uranus" , 
        8: "Neptune"}
    return dict_[id]

def get_planet_name(id):
    planets = ["The Sun", "Mercury", "Venus", "Earth", "Mars", "Jupiter", "Saturn", "Uranus", "Neptune"]
    return planets[id]

def get_planet_name(id):
    listOfPlanets = { 1: "Mercury",
                      2: "Venus",
                      3: "Earth",
                      4: "Mars",
                      5: "Jupiter",
                      6: "Saturn",
                      7: "Uranus" , 
                      8: "Neptune" }
    return listOfPlanets[id];

def get_planet_name(id):
    name=""
    id=str(id)
    a={
      '1':"Mercury",
      '2': "Venus",
      '3':"Earth",
      '4':"Mars",
      '5':"Jupiter",
      '6':"Saturn",
      '7':"Uranus" ,
      '8':"Neptune"}
    name=a[id]
    return name

def get_planet_name(numar):
    return {
        1 : "Mercury",
        2 : "Venus",
        3 : "Earth",
        4 : "Mars",
        5 : "Jupiter",
        6 : "Saturn",
        7 : "Uranus",
        8 : "Neptune"
    }.get(numar)

def get_planet_name(id):
    solar_system={
        1: "Mercury",
        2: "Venus",
        3:"Earth",
        4: "Mars",
        5: "Jupiter",
        6: "Saturn",
        7: "Uranus" , 
        8: "Neptune",
        }
    return solar_system.get(id)

def get_planet_name(id):
    planets = (
        None,
       "Mercury",
       "Venus",
       "Earth",
       "Mars",
       "Jupiter",
       "Saturn",
       "Uranus",
       "Neptune"
    )
    return planets[id]

def get_planet_name(id):
    # This doesn't work; Fix it!
    name=['Sun', 'Mercury', 'Venus', 'Earth', 'Mars', 'Jupiter', 'Saturn', 'Uranus', 'Neptune', 'Pluto']
    return name[id]

def get_planet_name(id):
    hop = [
        ["Mercury"],
        ["Venus"],
        ["Earth"],
        ["Mars"],
        ["Jupiter"],
        ["Saturn"],
        ["Uranus"],
        ["Neptune"]]
    return "'".join(hop[id-1])

def get_planet_name(id):
    # This doesn't work; Fix it!
    name=""
    planets = {
        1 : "Mercury",
        2: "Venus",
        3: "Earth",
        4: "Mars",
        5: "Jupiter",
        6: "Saturn",
        7: "Uranus",  
        8: "Neptune",
        }
    if id in planets:
        return planets[id]
    else:
        return f"{id} not available."
    return name

def get_planet_name(id):
    # This doesn't work; Fix it!

    plants = (None,"Mercury","Venus","Earth","Mars","Jupiter","Saturn","Uranus","Neptune")

    return plants[id]

def get_planet_name(id):
    # This doesn't work; Fix it!
    if id == 1:
        name = "Mercury"
    elif id == 2:
        name = "Venus"
    elif id == 3:
        name = "Earth" 
    elif id == 4:
        name = "Mars"
    elif id == 5:
        name = "Jupiter"
    elif id == 6: 
        name = "Saturn"
    elif id == 7: 
        name = "Uranus"  
    elif id == 8:
        name = "Neptune"
    else: 
        print("ivalid id")
    return name

def get_planet_name(id):
    planet_names = ["Mercury","Venus","Earth","Mars","Jupiter","Saturn","Uranus","Neptune"]
    return planet_names[id-1]

def get_planet_name(id):
    
#dict_of_planet = {1: 'Mercury', 2: 'Venus', 3: 'Earth', 4: 'Mars', 5: 'Jupiter', 6: "Saturn", 7: "Uranus", 8: "Neptune"}
#return 'Mercury'if id == 1 else 'Venus' if id == 2 else 'Earth' if id == 3 else 'Mars' if id == 4 else 'Jupiter' if id ==5 else "Saturn" if id == 6 else "Uranus" if id == 7 else 'Neptune' if id == 8
 
    if id == 1:
        return 'Mercury'
    if id == 2:
        return 'Venus'
    if id == 3:
        return 'Earth'
    if id == 4:
        return 'Mars'
    if id == 5:
        return 'Jupiter'
    if id == 6:
        return "Saturn"
    if id == 7:
        return "Uranus"
    if id == 8:
        return 'Neptune'

def get_planet_name(id):
    # This doesn't work; Fix it!
    obj1 = {
        1: "Mercury",
        2: "Venus",
        3: "Earth",
        4: "Mars",
        5: "Jupiter",
        6: "Saturn",
        7: "Uranus",
        8: "Neptune"
    }
    return obj1[id]



def get_planet_name(id):
    # This doesn't work; Fix it!
#     switch id:
#         case 1: name = "Mercury"
#         case 2: name = "Venus"
#         case 3: name = "Earth"
#         case 4: name = "Mars"
#         case 5: name = "Jupiter"
#         case 6: name = "Saturn"
#         case 7: name = "Uranus"  
#         case 8: name = "Neptune"
    planet_dict = {
        1: "Mercury",
        2: "Venus",
        3: "Earth",
        4: "Mars",
        5: "Jupiter",
        6: "Saturn",
        7: "Uranus",
        8: "Neptune"
    }
    name = planet_dict.get(id, 'Not found by id')
    return name

def get_planet_name(id):
    # This doesn't work; Fix it!
    
    case={
        1: "Mercury",
        2: "Venus",
        3: "Earth",
        4: "Mars",
        5: "Jupiter",
        6: "Saturn",
        7: "Uranus",  
        8: "Neptune"}
    if id in case.keys():
        return case[id]

def get_planet_name(id):
    planet_map = {
        1: "Mercury",
        2: "Venus",
        3: "Earth",
        4: "Mars",
        5: "Jupiter",
        6: "Saturn",
        7: "Uranus",  
        8: "Neptune"
        }
    return planet_map.get(id)

def get_planet_name(name):
    # This doesn't work; Fix it!
    planet = ["Mercury", "Venus", "Earth", "Mars", "Jupiter", "Saturn", "Uranus", "Neptune"]
    return planet[name-1]
#pogchamp


def get_planet_name(number):
    planets = {1 : "Mercury",
    2 : "Venus",
    3 : "Earth",
    4 : "Mars",
    5 : "Jupiter",
    6 : "Saturn",
    7 : "Uranus",
    8 : "Neptune"}
    return planets[number] if number in planets else None

def get_planet_name(id):
    namedic={1: "Mercury",2: "Venus", 3:  "Earth",4:  "Mars",5:  "Jupiter",6:  "Saturn",7: "Uranus"  ,8: "Neptune"}
    
    return namedic[id]

def get_planet_name(id):
    switcher= {
        1: "Mercury",
        2: "Venus",
        3: "Earth",
        4: "Mars",
        5: "Jupiter",
        6: "Saturn",
        7: "Uranus",
        8: "Neptune"
    }
    return switcher.get(id) if 0 < id < 9 else 'no planet for id {}'.format(id)

def get_planet_name(id):
    BASE_ID = {1: "Mercury", 2: "Venus", 3: "Earth", 4: "Mars", 5: "Jupiter", 6: "Saturn", 7: "Uranus", 8: "Neptune"}
    return BASE_ID.get(id)

def get_planet_name(id):
    plannetdict=dict({ 1 :"Mercury",
                       2 : "Venus",
                       3 :"Earth",
                       4 : "Mars",
                       5 : "Jupiter",
                       6 : "Saturn",
                       7 : "Uranus",  
                       8 : "Neptune"})
        
    return plannetdict[id]


def get_planet_name(id):
    array = ["Mercury", "Venus", "Earth", "Mars", "Jupiter", "Saturn", "Uranus", "Neptune"]
    return array[id-1];

def get_planet_name(id):
    switchcase={
        1: "Mercury",
        2: "Venus",
        3: "Earth",
        4: "Mars",
        5: "Jupiter",
        6: "Saturn",
        7: "Uranus",  
        8: "Neptune"
    }
    return switchcase.get(id,'Invalid planet id!')

def get_planet_name(id):
    # This doesn't work; Fix it!
    name1 = "Mercury"
    name2 = "Venus"
    name3 = "Earth"
    name4 = "Mars"
    name5 = "Jupiter"
    name6 = "Saturn"
    name7 = "Uranus"  
    name8 = "Neptune"
    if id == 1:
        return name1
    elif id == 2:
        return name2
    elif id ==3:
        return name3
    elif id ==4:
        return name4
    elif id == 5:
        return name5
    elif id == 6:
        return name6
    elif id == 7:
        return name7
    else:
        return name8

def get_planet_name(id):
    switch = {
       1: "Mercury",
       2: "Venus",
       3: "Earth",
       4: "Mars",
       5: "Jupiter",
       6: "Saturn",
       7: "Uranus", 
       8: "Neptune",
        }
    return switch.get(id, "test")

def get_planet_name(id):
    values = {
        1 : "Mercury",
        2 : "Venus",
        3 : "Earth",
        4 : "Mars",
        5 : "Jupiter",
        6 : "Saturn",
        7 : "Uranus",  
        8 : "Neptune"}
    name = values[id]
    return name

def get_planet_name(id):
    switch={
1: "Mercury",
2: "Venus",
3: "Earth",
4: "Mars",
5: "Jupiter",
6: "Saturn",
7: "Uranus" , 
8: "Neptune"}
    return switch.get(id, "earth")

def get_planet_name(id):
    # Fixed sir!
    planets = {
        1: "Mercury",
        2: "Venus",
        3: "Earth",
        4: "Mars",
        5: "Jupiter",
        6: "Saturn",
        7: "Uranus",
        8: "Neptune",
        }
    return planets[id]

def get_planet_name(id):
    # This doesn't work; Fix it!
    plantes = {
        1: "Mercury",
        2: "Venus",
        3: "Earth",
        4: "Mars",
        5: "Jupiter",
        6: "Saturn",
        7: "Uranus",
        8: "Neptune"
    }
    if id in plantes.keys():
        return plantes.get(id)
    else:
        return "not plante in this range"

def get_planet_name(id):
    # a dictionary also can work as a switch case
    switcher = {
        1:"Mercury",
        2:"Venus",
        3:"Earth",
        4:"Mars",
        5:"Jupiter",
        6:"Saturn",
        7:"Uranus", 
        8:"Neptune"
        }
    return switcher.get(id)

def get_planet_name(id):

    HOLDER = {1: "Mercury",
              2: "Venus",
              3: "Earth",
              4: "Mars",
              5: "Jupiter",
              6: "Saturn",
              7: "Uranus"  ,
              8: "Neptune"}

    return HOLDER[id]


def get_planet_name(id):
    return switch(id)

def switch(id):
    case = {
        'case1': {'name': "Mercury"},
        'case2': {'name': "Venus"},
        'case3': {'name': "Earth"},
        'case4': {'name': "Mars"},
        'case5': {'name': "Jupiter"},
        'case6': {'name': "Saturn"},
        'case7': {'name': "Uranus" },
        'case8': {'name': "Neptune"},
    }
    caseKey = 'case' + str(id)
    return case.get(caseKey, case.get('case1')).get('name')

def get_planet_name(id):
    # This doesn't work; Fix it!
    list_planet_id = ['Mercury', 'Venus', 'Earth', 'Mars', 'Jupiter', 'Saturn', 'Uranus', 'Neptune',]
    return list_planet_id[id-1]
        


def get_planet_name(id):
    # This doesn't work; Fix it!
    name=""
    if id == 1: name = "Mercury"
    elif id == 2: name = "Venus"
    elif id == 3: name = "Earth"
    elif id == 4: name = "Mars"
    elif id == 5: name = "Jupiter"
    elif id == 6: name = "Saturn"
    elif id == 7: name = "Uranus"  
    elif id == 8: name = "Neptune"
    else: name = "Pluto"
    return name

def get_planet_name(id):
    planents = {
        1: "Mercury",
        2: "Venus",
        3: "Earth",
        4: "Mars",
        5: "Jupiter",
        6: "Saturn",
        7: "Uranus",
        8: "Neptune"
    }
    return planents[id]

print((get_planet_name(3)))


def get_planet_name(id):
    id2 = id-1
    liste = ["Mercury","Venus","Earth","Mars","Jupiter","Saturn","Uranus","Neptune"]
    return (liste[id2])
    


planets = {1:'Mercury',
            2:'Venus',
            3:'Earth',
            4:'Mars',
            5:'Jupiter',
            6:'Saturn',
            7:'Uranus',
            8:'Neptune'}

def get_planet_name(number):
    return planets.get(number)

def get_planet_name(id):
    planets = ["Mercury", "Venus", "Earth", "Mars", "Jupiter", "Saturn", "Uranus", "Neptune"]
    id = int(id)
    return planets[id-1]

def get_planet_name(id):
    if id == 1:
        return 'Mercury'
    if id == 2:
        return 'Venus'
    if id == 4:
        return 'Mars'
    if id == 5:
        return 'Jupiter'
    if id == 8:
        return 'Neptune'
    if id == 3:
        return 'Earth'
    if id == 6:
        return 'Saturn'
    if id == 7:
        return 'Uranus'

def get_planet_name(name):
     return {1:"Mercury", 2:"Venus", 3:"Earth", 4: "Mars", 5:"Jupiter", 6:"Saturn", 7:"Uranus" ,8:"Neptune"}.get(name)


def get_planet_name(id):
    # This doesn't work; Fix it!
    dict = {
        1: "Mercury",
        2: "Venus",
        3: "Earth",
        4: "Mars",
        5: "Jupiter",
        6: "Saturn",
        7: "Uranus",  
        8: "Neptune"
        }
    return dict.get(id, 'NA')

def get_planet_name(id):
    case = id
    if case == 1: name = "Mercury"
    elif case == 2: name = "Venus"
    elif case == 3: name = "Earth"
    elif case == 4: name = "Mars"
    elif case == 5: name = "Jupiter"
    elif case == 6: name = "Saturn"
    elif case == 7: name = "Uranus"  
    elif case == 8: name = "Neptune"
    return name

def get_planet_name(id):
    if (id == 1):
        return "Mercury"
    elif (id == 2):
        return "Venus"
    elif (id == 3):
        return "Earth"
    elif (id == 4):
        return "Mars"
    elif (id == 5):
        return "Jupiter"
    elif (id == 6):
        return "Saturn"
    elif (id == 7):
        return "Uranus"
    elif (id == 8):
        return "Neptune"
    return "Invalid Planet Index"

def get_planet_name(id):
    p = {1: "Mercury", 2: "Venus", 3: "Earth", 4: "Mars", 5: "Jupiter",
         6: "Saturn",7:"Uranus",8: "Neptune"}
    return p.get(id)

def get_planet_name(id):
    # This doesn't work; Fix it!
    if id == 1:
        return  "Mercury"
    elif id == 2:
        return  "Venus"
    elif id == 3:
        return "Earth"
    elif id == 4:
        return "Mars"
    elif id == 5:
        return "Jupiter"
    elif id == 6:
        return "Saturn"
    elif id == 7:
        return "Uranus"  
    elif id == 8:
        return  "Neptune"
    return None

LOOKUP = {
        1: "Mercury",
        2: "Venus",
        3: "Earth",
        4: "Mars",
        5: "Jupiter",
        6: "Saturn",
        7: "Uranus", 
        8: "Neptune"}
def get_planet_name(id):
    return LOOKUP[id]

def get_planet_name(id):
    return 'Mercury Venus Earth Mars Jupiter Saturn Uranus Neptune'.split(' ').__getitem__(id-1)

def get_planet_name(id):
    name=""
    if id == 1: 
        name = "Mercury"
        return name
    if id == 2: 
        name = "Venus"
        return name
    if id == 3: 
        name = "Earth"
        return name
    if id == 4: 
        name = "Mars"
        return name
    if id == 5: 
        name = "Jupiter"
        return name
    if id == 6: 
        name = "Saturn"
        return name
    if id == 7: 
        name = "Uranus"  
        return name
    if id == 8: 
        name = "Neptune"
        return name

def get_planet_name(id):

    return {
        1: "Mercury",
        2: "Venus",
        3: "Earth",
        4: "Mars",
        5: "Jupiter",
        6: "Saturn",
        7: "Uranus",
        8: "Neptune"
        }.get(id, "Not Available")

def get_planet_name(id):
    switcher={
        1: "Mercury",
        2: "Venus",
        3: "Earth",
        4: "Mars",
        5: "Jupiter",
        6: "Saturn",
        7: "Uranus",
        8: "Neptune"
    }
    return switcher.get(id, "invadlid")

def get_planet_name(id):
    # This doesn't work; Fix it!
    name=""
    switch_id={
        1: "Mercury",
        2:"Venus",
        3: "Earth",
        4: "Mars",
        5:"Jupiter",
        6: "Saturn",
        7:"Uranus" , 
        8:"Neptune"}
    return name+switch_id[id]

def get_planet_name(id):
    # This doesn't work; Fix it!
    switcher = {
         1:  "Mercury",
         2:  "Venus",
         3:  "Earth",
         4:  "Mars",
         5:  "Jupiter",
         6:  "Saturn",
         7:  "Uranus", 
         8:  "Neptune",
 }
    return switcher.get(id,"invalid planet index")

def get_planet_name(id):
    name = ''
    planets = ['Mercury','Venus','Earth','Mars','Jupiter','Saturn','Uranus','Neptune']
    ID = [1,2,3,4,5,6,7,8]
    for i in range(len(ID)):
        if id == ID[i]:
            return(planets[i])



def get_planet_name(num):
 if num == 1:
    return "Mercury"
 elif num == 2:
    return "Venus"
 elif num == 3:
    return "Earth"
 elif num == 4:
    return "Mars"
 elif num == 5:
    return "Jupiter"
 elif num == 6:
    return "Saturn"
 elif num == 7:
    return "Uranus"
 elif num == 8:
    return "Neptune"
 elif num == 9:
    return "Pluto"
 else:
    return "Not in range"


def get_planet_name(id):
    if id == 1: 
        return "Mercury"
    if id == 2: 
        return "Venus"
    if id == 3: 
        return "Earth"
    if id == 4: 
        return "Mars"
    if id == 5: 
        return "Jupiter"
    if id == 6: 
        return "Saturn"
    if id == 7: 
        return "Uranus"  
    if id == 8: 
        return "Neptune"
    else:
        return None

def get_planet_name(id):
    name=""
    thisdict ={1:'Mercury',
               2:'Venus',
               3:'Earth',
               4:'Mars',
               5:'Jupiter',
               6:'Saturn',
               7:'Uranus',
               8:'Neptune'
    }
    name = thisdict[id]
    return name

def get_planet_name(id):
    planet_names = {
        1: "Mercury",
        2: "Venus",
        3: "Earth",
        4: "Mars",
        5: "Jupiter",
        6: "Saturn",
        7: "Uranus",
        8: "Neptune",
    }
    if (id > 8):
        print ("Kelebihan Bos")
    elif (id < 0):
        print ("Belajar Lagi Bos")
    else:
        return planet_names.get(id)
print(get_planet_name(3))