Hello,
again a beginner question. I tried to format the code. I apologise if it did not work.
I have this line:
<print(“My name is”, given_name, “,”, given_name, family_name, “.”)>
e.g. My name is John , John Williams .
How could I write this line so I have the print
My name is John, John Williams. ?
I have tried:
<print(“My name is”, given_name, sep=“”, “,”, given_name, family_name, sep=“”, “.”) end=\n>
<print(“My name is”, print(given_name, sep=" “) end=” “, “,”, given_name, print(family_name, sep=” ") end = " ", “.”)>
<print(“My name is”, f{given_name}{,}, given_name, f{family_name}{.})>
I know this <print(f{word_1}{word_2})> works for two text strings alone in one print(), but if the contains more text strings, then I longer have no idea.
Thank you in advance.