0

When I return this function I get back the imputed name and "none." How do I get rid of "none."

def hello_name(yeah):

      """returns a greeting in the form of 'Hello s!'"""
      print('Hello {0}!'.format(yeah))
ppeterka
  • 20,372
  • 6
  • 62
  • 77
Jane Doe
  • 25
  • 1
  • 8
  • 3
    `return` the result instead of `print`ing it. – Lukas Graf Aug 25 '16 at 20:32
  • 1
    Possible duplicate of [How is returning the output of a function different than printing it?](http://stackoverflow.com/questions/750136/how-is-returning-the-output-of-a-function-different-than-printing-it) – Lukas Graf Aug 25 '16 at 20:32

0 Answers0