Hi, on the “hello world” lesson on concatenation (link below) it shows that you can use coma instead of + if you also include a number.
example:
birthday_string = “I am "
age = 10
birthday_string_2 = " years old today!”
print(birthday_string, age, birthday_string_2)
will print: I am 10 years old today!
I’ve tried comas only with strings and the comas and quotation marks remained.
example:
string1 = "The wind, "
string2 = "which had hitherto carried us along with amazing rapidity, "
string3 = "sank at sunset to a light breeze; "
string4 = "the soft air just ruffled the water and "
string5 = "caused a pleasant motion among the trees as we approached the shore, "
string6 = “from which it wafted the most delightful scent of flowers and hay.”
Will print: ('The wind, ', 'which had hitherto carried us along with amazing rapidity, ', 'sank at sunset to a light breeze; ', 'the soft air just ruffled the water and ', 'caused a pleasant motion among the trees as we approached the shore, ', ‘from which it wafted the most delightful scent of flowers and hay.’)
I’ve tried adding a number variable to the mix but the printing issues stays the same.