+ 1

Need help on Python 3 Module 10 Project

Hi- this is my code for the Pythonicness & Packaging unit project. When I run it, None appears after my output, and I can't figure out why. def concatenate(*args): for i in args: if i == '!': print(i) else: print(i + '-') print(concatenate("I", "love", "Python", "!"))

14th Jan 2021, 10:08 PM
Alex
Alex - avatar
2 Respuestas
+ 3
Concatenation function isn't returning anything and so print prints the output as None.
14th Jan 2021, 10:22 PM
Abhay
Abhay - avatar
14th Jan 2021, 10:45 PM
JaScript
JaScript - avatar