+ 1
Pls what is wrong with this code?it is not giving me the desired output.
def Thank_you( names): print("Thank you for being a good friend,+ names") Thank_you(Sam) Thank_you(Dave)
4 Antworten
+ 2
Try this:
def Thank_you(names):
print("Thank you for being a good friend, " + names + ".")
Thank_you("Sam")
Thank_you("Dave")
0
you can not include the +variable within the quotes. you may append is after the quotes or with "some string {0}".names
0
thanks for your response it was helpful
0
kehinde Onoba Happy to help :)