Why should we use concatenation instead of just the print() function?

Hi all :slight_smile:

So there’s two ways to print a concatenated string with a number in it:

  1. Make the number a string first with the str() function, then print(it + with + other + stuff)
  2. Don’t do 1, just print(it, inside, this, function)

What’s the reason behind these two methods? Why use 1) and not 2) ?

12 Likes