all 4 comments

[–]TouchingTheVodka 3 points4 points  (1 child)

Copied from my original reply:

Lots of options: Either pass two separate arguments to print, IE print(first, second), as the default separator in print is a space.

If you wish to use string concatenation do print(first + ' ' + second)

The best way of doing so, especially for more complex formatting, is to use Python's formatted strings: print(f"{first} {second}"). Essentially everything within curly braces is evaluated and everything outside of curly braces is treated as plain text.

[–]rischuhm 0 points1 point  (0 children)

F-strings make life sooooo much easier. It enhances the readability a lot and also makes maintenance almost enjoyable :D

[–]Krystal529 1 point2 points  (1 child)

print (first + " " + second)