0
Help me :c
good, I have a problem, how can I print the parameters of a function together, next to each other, example if i have the following: def Sum (a,b) Â Â Â Â Â Â Â print ("The answer is" ab) Sum (7,8) How do I get the terminal to return this to me? The answer is 78 thanks in advance, i'm new :c
4 Answers
+ 4
You can use a format string:
print (f"The answer is {a}{b}")
+ 1
Oh thanks, that great community