## Debugging sayHello function

The starship Enterprise has run into some problem when creating a program to greet everyone as they come aboard. It is your job to fix the code and get the program working again!

Example output: 
```
Hello, Mr. Spock
```

Difficulty: introductory

Starter code:

def say_hello(name):
	

Solutions:
def say_hello(name):
    return f"Hello, {name}"

def say_hello(name):
    return"Hello, " +name

def say_hello(name):
    return "Hello, {0}".format(name)

def say_hello(name):
    return "Hello, {}".format(name)

def say_hello(name):
    return f'Hello, {name}'

# how about you tell us proper function name beforehand?


say_hello = "Hello, ".__add__

def say_hello(name):
    return "Hello, %s" % name

def say_hello(name):
    return "Hello," + " " + name

def say_hello(input):
    return "Hello, " + input

say_hello = lambda n:"Hello, {}".format(n)

def say_hello(n):
  return "Hello, " + n

def say_hello(name):
    return "Hello, " + name
#pogchamp


def say_hello(name):
    if name:
        return "Hello, " + name

def say_hello(name: str) -> str:
    """ Greet The starship Enterprise member. """
    return f"Hello, {name}"

def say_hello(name):
    return "Hello, " + name
    pass

def say_hello(name):
    return str(f'Hello, {name}')


def say_hello(name):
    if name == '':
        return 'Hello, World'
    else:
        return 'Hello, {}'.format(name)

def say_hello(name):
    return ('Hello, ' + name)
    
say_hello('Mr. Spock')
say_hello('Captain Kirk')
say_hello('Liutenant Uhura')
say_hello('Dr. McCoy')
say_hello('Mr. Scott')

def say_hello(name):
    if False:
        print('reeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee https://www.youtube.com/watch?v=ub82Xb1C8os')
    return "Hello, " + name

say_hello = lambda name: "Hello, %s" % name

say_hello = lambda n: "Hello, %s" % n

say_hello=lambda k:f'Hello, {k}'


import unittest


def say_hello(name):
    return 'Hello, {}'.format(name)
    
    
class TestSayHello(unittest.TestCase):
    def test_say_hello(self):
        self.assertEqual(say_hello('Mr. Spock'), 'Hello, Mr. Spock')


def say_hello(name):
    return f"Hello, {name}"

print((say_hello("Mr.Spock")))


def say_hello(name):
    this = (f'Hello, {name}')
    return this

def say_hello(name):
    a = 'Hello, ' 
    b = name
    return a + b

def say_hello(name):
    return  f"Hello, {name}".format(name)

def say_hello(name):
    greet = 'Hello, '+name
    print(greet)
    return greet

def say_hello(name):
    hello = "Hello" + ", " + name
    return hello


def say_hello(name):
    return "Hello, " + name

say_hello('dff')

def say_hello(name:str)->str:
  result:str = "Hello, " + name
  return result

def say_hello(name):
    return "Hello"+', '+name
say_hello('Mr.Spock')

def say_hello(name):
    out = "Hello, "+name
    return out

def say_hello(name):
    return "Hello, {nam}".format(nam=name)


def say_hello(name):
    
    if(name):
        name = "Hello, " + name
        return name
        
        
        
       ## name = 'Hello, Mr. Spock'
       ## print(name) 
         


""" Greet the starship Enterprise member. """
say_hello = "Hello, ".__add__

# def say_hello(name):
# "Hello"
def say_hello(name):
    return 'Hello, ' + name 

def say_hello(name):
    s = 'Hello, ' + name
    a = '%s'
    return(a % s)

def say_hello(name='World'):
    name = str(name)
    greet = "Hello, "+ name
    return greet

def say_hello(name):
    result = "Hello, " + name
    return result

def say_hello(name):
    s = "Hello, ", name
    return "".join(s)

def say_hello(name):
    name = "Hello,", name
    name = ' '.join(name)
    return name

def say_hello(name):
    name = f"Hello, {name}"
    return name

def say_hello(name):
    hello = "Hello, {}".format(name)
    return hello

def say_hello(name):
    return f"Hello, " + name

def say_hello(n=''):
      return f'Hello, {n}'

def say_hello(name):
    a = ("Hello," + " " + name )
    return a

def say_hello(name):
    p=('Hello, {}'.format(name))
    return p

def say_hello(name):
    a = "Hello, "
    return (a + name)


def say_hello(name: any) -> str:
    return "Hello, " + str(name)

def say_hello(name):
    answer="Hello, "+name
    return answer

def say_hello(name):
    sen = "Hello, " + name 
    return sen

def say_hello(name):
    return f"Hello, {name}"
print((say_hello("nini")))


def say_hello(name):
    x = f"Hello, {name}"
    return x

def say_hello(name: str) -> str:
    return f"Hello, {name}"

def say_hello(name):
    return "Hello, " + ''.join(name)

def say_hello(name):
    s = ("Hello, {}".format(name))
    return s
print(say_hello('Mr. Spock'))

def say_hello(name):
    return "Hello, {n}".format(n = name)

def say_hello(name):
    return "".join(["Hello, ",name  ])

def say_hello(name):
    return "Hello" + ', ' + name
    
print(say_hello('Mr.Spock'))

def say_hello(name):
    if name:
        return "Hello, " + name;
    else:
        "Thus, do we move to meet Hell's legions as a mighty army,\
        and form our squared ranks against Hell's gates, \
        and prepare to meet the seven million, four hundred and five thousand,\
        nine hundred and twenty-six demons of iniquity!"

def say_hello(name):
    greet = (f"Hello, {name}")
    return greet

def say_hello(name):
    return("Hello," + " " + name)
say_hello("Mr. Spock")
say_hello("Captain Kirk")
say_hello("Liutenant Uhura")
say_hello("Dr. McCoy")
say_hello("Mr. Scott")

def say_hello(name):
    string = "Hello"+", " + name
    return string

def say_hello(name):
    return f"Hello, {name}"

print(say_hello)

def say_hello(name):
    say = 'Hello, ' + name
    return(say)

def say_hello(name):
    ans = "Hello, " + name
    return ans

def say_hello(name):
    return "Hello, " + name
print(say_hello)

def say_hello(name):
    salu = name
    return "Hello, {}".format(salu)

def say_hello(name):
   return "Hello, " + name
say_hello('Marissa')

def say_hello(name):
    return " ,olleH"[::-1]+name

def say_hello(name):
    return "olleH"[::-1] +", "+ name

def say_hello(name):
    hello = "Hello, " + name
    return (hello)


def say_hello(name):
    sh = 'Hello, '+ name
    return sh

def say_hello(name):
    hi = "Hello" + "," + " " + name
    return hi

def say_hello(name):
    hello_name = ("Hello, " + name)
    return hello_name


def say_hello(name):
    name = "Hello, " + name
    return(name)

def say_hello(name):
    """Print a greeting message."""
    return 'Hello, ' + name

def say_hello(name):
    name = str(name)
    return ("Hello, " + name )

def say_hello(name):
    return f'Hello, {name}'
say_hello('Mr. Robot')

def say_hello(name):
    return "Hello"+ ','+' '+name

def say_hello(name):
    return "".join('Hello'+', '+ (name))


def say_hello(name):
    print(name)
    arr = [72, 101, 108, 108, 111, 44]
    return ''.join([chr(i) for i in arr])+' '+name

def say_hello(name):
    asd = ("Hello," ,name)
    asf = " ".join(asd)
    return (asf)

def say_hello(name):
    x = "Hello, " + name
    return x


def say_hello(name):
    str = "Hello, " + name
    return str

def say_hello(name):
  return "Hello, " + name

list= ["Mr. Steve","Captain Kata","Eren Yeager","Dr. McCoi","Mrs. Scott"]

say_hello(list[0])
say_hello(list[1])
say_hello(list[2])
say_hello(list[3])
say_hello(list[4])


def say_hello(name):
    var = f"Hello, {name}"
    return var
    


def say_hello(name):
    return("Hello,"+" "+str(name))

def say_hello(name):
    greeting = "Hello" + ', '+name
    return greeting

def say_hello(name):
    #print ("Hello, " +name)
    return "Hello, " +name

def say_hello(name):
    var = "Hello, {}".format(name)
    return var

def say_hello(name):
    output = 'Hello, ' + name 
    return output

def say_hello(name):
    return('Hello, ' + name)

say_hello('MacMillan')

def say_hello(name):
    return "Hello, " + name if name else name

def say_hello(name):
    a = "Hello"
    return a + ", " + name