Concatenation in Python

Опубликовано: 18 Май 2026
на канале: Silicon Dojo
164
9

Join the fun: http://www.SiliconDojo.com

Support us with at: http://www.donorbox.com/etcg

Concatenation allows you to mix static text with variable values. You can use this to set variables or to simply print output to the screen.

There are three ways to concatenate:

will combine text and variable values without any additional spaces

, will combine text and variable values with a single space in between

f string will combine text and variable values exactly as you have typed out.